24 lines
491 B
TypeScript
24 lines
491 B
TypeScript
import { WebhookBlockV6 } from './schema'
|
|
|
|
export enum HttpMethod {
|
|
POST = 'POST',
|
|
GET = 'GET',
|
|
PUT = 'PUT',
|
|
DELETE = 'DELETE',
|
|
PATCH = 'PATCH',
|
|
HEAD = 'HEAD',
|
|
CONNECT = 'CONNECT',
|
|
OPTIONS = 'OPTIONS',
|
|
TRACE = 'TRACE',
|
|
}
|
|
|
|
export const defaultWebhookAttributes = {
|
|
method: HttpMethod.POST,
|
|
} as const
|
|
|
|
export const defaultWebhookBlockOptions = {
|
|
isAdvancedConfig: false,
|
|
isCustomBody: false,
|
|
isExecutedOnClient: false,
|
|
} as const satisfies WebhookBlockV6['options']
|