Files
supabase/apps/studio/components/interfaces/Database/Hooks/Hooks.constants.ts
2026-04-01 10:22:37 +02:00

39 lines
937 B
TypeScript

import { BASE_PATH, IS_PLATFORM } from '@/lib/constants'
export const HOOK_EVENTS = [
{
label: 'Insert',
value: 'INSERT',
description: 'Any insert operation on the table',
},
{
label: 'Update',
value: 'UPDATE',
description: 'Any update operation, of any column in the table',
},
{
label: 'Delete',
value: 'DELETE',
description: 'Any deletion of a record',
},
]
export const AVAILABLE_WEBHOOK_TYPES = [
{
value: 'http_request',
icon: `${BASE_PATH}/img/function-providers/http-request.png`,
label: 'HTTP Request',
description: 'Send an HTTP request to any URL.',
},
...(IS_PLATFORM
? [
{
value: 'supabase_function',
icon: `${BASE_PATH}/img/function-providers/supabase-severless-function.png`,
label: 'Supabase Edge Functions',
description: 'Choose a Supabase edge function to run.',
},
]
: []),
]