feat: add endpoint to fetch Slack channels with bot membership status and update UI to display channels

This commit is contained in:
Anish Sarkar 2026-01-31 18:30:50 +05:30
parent eaf0a454b1
commit 59dd9554b3
4 changed files with 296 additions and 3 deletions

View file

@ -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();