refactor: completely remove Local Folder connector references and update folder sync logic

This commit is contained in:
Anish Sarkar 2026-04-02 22:21:16 +05:30
parent 493d720b89
commit 149ccb97dd
8 changed files with 60 additions and 35 deletions

View file

@ -405,17 +405,6 @@ class ConnectorsApiService {
);
};
// =============================================================================
// Local Folder Connector Methods
// =============================================================================
indexFile = async (connectorId: number, filePath: string) => {
return baseApiService.post(
`/api/v1/search-source-connectors/${connectorId}/index-file`,
undefined,
{ body: { file_path: filePath } }
);
};
}
export type { SlackChannel, DiscordChannel };

View file

@ -395,6 +395,14 @@ class DocumentsApiService {
);
};
folderIndex = async (searchSpaceId: number, body: { folder_path: string; folder_name: string; search_space_id: number; exclude_patterns?: string[]; file_extensions?: string[]; root_folder_id?: number; enable_summary?: boolean }) => {
return baseApiService.post(`/api/v1/documents/folder-index`, undefined, { body });
};
folderIndexFile = async (searchSpaceId: number, body: { folder_path: string; folder_name: string; search_space_id: number; target_file_path: string; enable_summary?: boolean }) => {
return baseApiService.post(`/api/v1/documents/folder-index-file`, undefined, { body });
};
/**
* Delete a document
*/