(feat:nested source view) file tree, chunks display

This commit is contained in:
ManishMadan2882
2025-07-15 19:15:40 +05:30
parent 1d9af05e9e
commit 8a7806ab2d
9 changed files with 452 additions and 358 deletions

View File

@@ -86,8 +86,9 @@ const userService = {
page: number,
perPage: number,
token: string | null,
path?: string,
): Promise<any> =>
apiClient.get(endpoints.USER.GET_CHUNKS(docId, page, perPage), token),
apiClient.get(endpoints.USER.GET_CHUNKS(docId, page, perPage, path), token),
addChunk: (data: any, token: string | null): Promise<any> =>
apiClient.post(endpoints.USER.ADD_CHUNK, data, token),
deleteChunk: (
@@ -98,6 +99,8 @@ const userService = {
apiClient.delete(endpoints.USER.DELETE_CHUNK(docId, chunkId), token),
updateChunk: (data: any, token: string | null): Promise<any> =>
apiClient.put(endpoints.USER.UPDATE_CHUNK, data, token),
getDirectoryStructure: (docId: string, token: string | null): Promise<any> =>
apiClient.get(endpoints.USER.DIRECTORY_STRUCTURE(docId), token),
};
export default userService;