feat: enhance folder indexing by adding root folder ID support and implement folder creation and cleanup logic

This commit is contained in:
Anish Sarkar 2026-04-02 22:41:45 +05:30
parent caf2525ab5
commit c27d24a117
5 changed files with 236 additions and 1 deletions

View file

@ -399,7 +399,7 @@ class DocumentsApiService {
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 }) => {
folderIndexFile = async (searchSpaceId: number, body: { folder_path: string; folder_name: string; search_space_id: number; target_file_path: string; root_folder_id?: number | null; enable_summary?: boolean }) => {
return baseApiService.post(`/api/v1/documents/folder-index-file`, undefined, { body });
};