import { BitBucketHook , GenericHook , GithubHook , Hook , SlackHook , TeamsHook , } from './types' ; export function isGenericHook ( hook ) { return hook . hookType === 'GENERIC_HOOK' ; } export function isSlackHook ( hook ) { return hook . hookType === 'SLACK_HOOK' ; } export function isGithubHook ( hook ) { return hook . hookType === 'GITHUB_STATUS_HOOK' ; } export function isBitbucketHook ( hook ) { return hook . hookType === 'BITBUCKET_STATUS_HOOK' ; } export function isTeamsHook ( hook ) { return hook . hookType === 'TEAMS_HOOK' ; }