mirror of
https://github.com/supabase/supabase.git
synced 2026-06-18 21:54:18 +08:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
39 lines
937 B
TypeScript
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.',
|
|
},
|
|
]
|
|
: []),
|
|
]
|