mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-05 05:42:39 +02:00
feat: integrate OneDrive connector with UI components and configuration options
This commit is contained in:
parent
028c88be72
commit
147061284b
13 changed files with 516 additions and 10 deletions
|
|
@ -277,6 +277,19 @@ class ConnectorsApiService {
|
|||
}>(`/api/v1/connectors/${connectorId}/drive-picker-token`);
|
||||
};
|
||||
|
||||
/**
|
||||
* List OneDrive folders and files
|
||||
*/
|
||||
listOneDriveFolders = async (request: { connector_id: number; parent_id?: string }) => {
|
||||
const queryParams = request.parent_id
|
||||
? `?parent_id=${encodeURIComponent(request.parent_id)}`
|
||||
: "";
|
||||
return baseApiService.get(
|
||||
`/api/v1/connectors/${request.connector_id}/onedrive/folders${queryParams}`,
|
||||
listGoogleDriveFoldersResponse
|
||||
);
|
||||
};
|
||||
|
||||
// =============================================================================
|
||||
// MCP Connector Methods
|
||||
// =============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue