mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 07:39:07 +03:00
* Start new integrations page * Move cronjobs into integrations * Rearrange * Remove duplicate * Move around menu items
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
import { EdgeFunctions, RESTApi, SqlEditor } from 'icons'
|
|
import { ScrollText } from 'lucide-react'
|
|
|
|
export const CRONJOB_TYPES = [
|
|
'http_request',
|
|
'edge_function',
|
|
'sql_function',
|
|
'sql_snippet',
|
|
] as const
|
|
|
|
export const CRONJOB_DEFINITIONS = [
|
|
{
|
|
value: 'sql_snippet',
|
|
icon: <SqlEditor strokeWidth={1} />,
|
|
label: 'SQL Snippet',
|
|
description: 'Write a SQL snippet to run.',
|
|
},
|
|
{
|
|
value: 'sql_function',
|
|
icon: <ScrollText strokeWidth={1} />,
|
|
label: 'Postgres SQL Function',
|
|
description: 'Choose a Postgres SQL functions to run.',
|
|
},
|
|
|
|
{
|
|
value: 'http_request',
|
|
icon: <RESTApi strokeWidth={1} />,
|
|
label: 'HTTP Request',
|
|
description: 'Send an HTTP request to any URL.',
|
|
},
|
|
{
|
|
value: 'edge_function',
|
|
icon: <EdgeFunctions strokeWidth={1} />,
|
|
label: 'Supabase Edge Function',
|
|
description: 'Choose a Supabase edge function to run.',
|
|
},
|
|
]
|
|
|
|
export type HTTPHeader = { name: string; value: string }
|
|
|
|
export type HTTPParameter = { name: string; value: string }
|