mirror of https://github.com/buster-so/buster.git
18 lines
455 B
TypeScript
18 lines
455 B
TypeScript
import type {
|
|
GetIntegrationResponse,
|
|
GetChannelsResponse
|
|
} from '@buster/server-shared/slack';
|
|
import { queryOptions } from '@tanstack/react-query';
|
|
|
|
export const slackGetIntegration = queryOptions<GetIntegrationResponse>({
|
|
queryKey: ['slack', 'integration']
|
|
});
|
|
|
|
export const slackGetChannels = queryOptions<GetChannelsResponse>({
|
|
queryKey: ['slack', 'channels']
|
|
});
|
|
|
|
export const slackQueryKeys = {
|
|
slackGetIntegration,
|
|
slackGetChannels
|
|
};
|