chore: ran frontend linting

This commit is contained in:
Anish Sarkar 2026-01-01 22:24:42 +05:30
parent f9a10c1e0d
commit 95878368c8
74 changed files with 2347 additions and 1697 deletions

View file

@ -2,7 +2,7 @@
/**
* Maps SearchSourceConnectorType to DocumentType for fetching document counts
*
*
* Note: Some connectors don't have a direct 1:1 mapping to document types:
* - Search API connectors (TAVILY_API, SEARXNG_API, etc.) don't index documents
* - WEBCRAWLER_CONNECTOR maps to CRAWLED_URL document type
@ -35,9 +35,7 @@ export const CONNECTOR_TO_DOCUMENT_TYPE: Record<string, string> = {
* Get the document type for a given connector type
* Returns undefined if the connector doesn't index documents (e.g., search APIs)
*/
export function getDocumentTypeForConnector(
connectorType: string
): string | undefined {
export function getDocumentTypeForConnector(connectorType: string): string | undefined {
return CONNECTOR_TO_DOCUMENT_TYPE[connectorType];
}
@ -62,4 +60,3 @@ export function getDocumentCountForConnector(
export function isIndexableConnectorType(connectorType: string): boolean {
return connectorType in CONNECTOR_TO_DOCUMENT_TYPE;
}