Type Alias: CustomEndpoint
CustomEndpoint =
object
Defined in: index.ts:20
Custom endpoint configuration for sending notifications to any platform.
Properties
formatBody
formatBody: (
params) =>Record<string,unknown>
Defined in: index.ts:34
Function to format the notification message for this specific endpoint.
Receives the notification and project name, returns a plain object to be JSON serialized as the request body.
Must return a value of type Record<string, unknown>.
Parameters
| Parameter | Type |
|---|---|
params | { notification: NotificationMessage; project: string; } |
params.notification | NotificationMessage |
params.project | string |
Returns
Record<string, unknown>
headers?
optionalheaders?:Record<string,string>
Defined in: index.ts:42
Optional custom headers for the request.
Defaults to { 'Content-Type': 'application/json' }
method?
optionalmethod?:"POST"|"PUT"|"PATCH"
Defined in: index.ts:46
HTTP method to use. Defaults to 'POST'.
name?
optionalname?:string
Defined in: index.ts:28
Optional name to identify this endpoint (useful for debugging).
url
url:
string
Defined in: index.ts:24
The URL of the endpoint to send notifications to.