(webhook: Record<string, unknown>)
| 9 | |
| 10 | /** Safely read a webhook row's provider config as a plain object. */ |
| 11 | export function getProviderConfig(webhook: Record<string, unknown>): Record<string, unknown> { |
| 12 | return (webhook.providerConfig as Record<string, unknown>) || {} |
| 13 | } |
| 14 | |
| 15 | /** Build the public callback URL providers should deliver webhook events to. */ |
| 16 | export function getNotificationUrl(webhook: Record<string, unknown>): string { |
no outgoing calls
no test coverage detected