mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 10:26:33 +02:00
feat: add endpoint to fetch Slack channels with bot membership status and update UI to display channels
This commit is contained in:
parent
eaf0a454b1
commit
59dd9554b3
4 changed files with 296 additions and 3 deletions
|
|
@ -20,6 +20,8 @@ import {
|
|||
listGitHubRepositoriesResponse,
|
||||
listGoogleDriveFoldersRequest,
|
||||
listGoogleDriveFoldersResponse,
|
||||
listSlackChannelsResponse,
|
||||
type SlackChannel,
|
||||
type UpdateConnectorRequest,
|
||||
updateConnectorRequest,
|
||||
updateConnectorResponse,
|
||||
|
|
@ -335,6 +337,22 @@ class ConnectorsApiService {
|
|||
}
|
||||
);
|
||||
};
|
||||
|
||||
// =============================================================================
|
||||
// Slack Connector Methods
|
||||
// =============================================================================
|
||||
|
||||
/**
|
||||
* Get Slack channels with bot membership status
|
||||
*/
|
||||
getSlackChannels = async (connectorId: number) => {
|
||||
return baseApiService.get(
|
||||
`/api/v1/slack/connector/${connectorId}/channels`,
|
||||
listSlackChannelsResponse
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export type { SlackChannel };
|
||||
|
||||
export const connectorsApiService = new ConnectorsApiService();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue