(
webhookRecord: { provider: string; providerConfig?: Record<string, unknown> },
body: unknown,
requestId: string
)
| 221 | * Delegates to the provider handler registry. |
| 222 | */ |
| 223 | export function shouldSkipWebhookEvent( |
| 224 | webhookRecord: { provider: string; providerConfig?: Record<string, unknown> }, |
| 225 | body: unknown, |
| 226 | requestId: string |
| 227 | ): boolean { |
| 228 | const handler = getProviderHandler(webhookRecord.provider) |
| 229 | const providerConfig = webhookRecord.providerConfig ?? {} |
| 230 | return ( |
| 231 | handler.shouldSkipEvent?.({ webhook: webhookRecord, body, requestId, providerConfig }) ?? false |
| 232 | ) |
| 233 | } |
| 234 | |
| 235 | /** Returns 200 OK for providers that validate URLs before the workflow is deployed */ |
| 236 | export function handlePreDeploymentVerification( |
no test coverage detected