(feat:connector,fe) sync api, notification

This commit is contained in:
ManishMadan2882
2025-09-02 13:36:41 +05:30
parent 384ad3e0ac
commit c2c18e8319
3 changed files with 13 additions and 1 deletions

View File

@@ -104,6 +104,18 @@ const userService = {
apiClient.get(endpoints.USER.DIRECTORY_STRUCTURE(docId), token),
manageSourceFiles: (data: FormData, token: string | null): Promise<any> =>
apiClient.postFormData(endpoints.USER.MANAGE_SOURCE_FILES, data, token),
syncConnector: (docId: string, token: string | null): Promise<any> => {
const sessionToken = localStorage.getItem('google_drive_session_token');
return apiClient.post(
endpoints.USER.SYNC_CONNECTOR,
{
source_id: docId,
session_token: sessionToken,
provider: 'google_drive'
},
token
);
},
};
export default userService;