콘텐츠로 이동

WebhookRuntimeService

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:60

new WebhookRuntimeService(config): WebhookRuntimeService

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:75

WebhookRuntimeConfig

WebhookRuntimeService

addEndpoint(input): Promise<{ active: boolean; createdAt: Date; description?: string; events: WebhookEventType[]; filters?: { channelId?: string[]; providerId?: string[]; templateId?: string[]; }; headers?: Record<string, string>; id: string; lastTriggeredAt?: Date; name?: string; retryConfig?: { backoffMultiplier: number; maxRetries: number; retryDelayMs: number; }; secret?: string; status: "error" | "active" | "inactive" | "suspended"; updatedAt: Date; url: string; }>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:98

WebhookEndpointInput

Promise<{ active: boolean; createdAt: Date; description?: string; events: WebhookEventType[]; filters?: { channelId?: string[]; providerId?: string[]; templateId?: string[]; }; headers?: Record<string, string>; id: string; lastTriggeredAt?: Date; name?: string; retryConfig?: { backoffMultiplier: number; maxRetries: number; retryDelayMs: number; }; secret?: string; status: "error" | "active" | "inactive" | "suspended"; updatedAt: Date; url: string; }>

WebhookRuntime.addEndpoint


addEndpoints(inputs): Promise<object[]>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:120

readonly WebhookEndpointInput[]

Promise<object[]>

WebhookRuntime.addEndpoints


emit(event): Promise<void>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:223

WebhookEvent

Promise<void>

WebhookRuntime.emit


emitSync(event): Promise<object[]>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:238

WebhookEvent

Promise<object[]>

WebhookRuntime.emitSync


flush(): Promise<void>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:260

Promise<void>

WebhookRuntime.flush


getEndpoint(endpointId): Promise<{ active: boolean; createdAt: Date; description?: string; events: WebhookEventType[]; filters?: { channelId?: string[]; providerId?: string[]; templateId?: string[]; }; headers?: Record<string, string>; id: string; lastTriggeredAt?: Date; name?: string; retryConfig?: { backoffMultiplier: number; maxRetries: number; retryDelayMs: number; }; secret?: string; status: "error" | "active" | "inactive" | "suspended"; updatedAt: Date; url: string; } | null>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:172

string

Promise<{ active: boolean; createdAt: Date; description?: string; events: WebhookEventType[]; filters?: { channelId?: string[]; providerId?: string[]; templateId?: string[]; }; headers?: Record<string, string>; id: string; lastTriggeredAt?: Date; name?: string; retryConfig?: { backoffMultiplier: number; maxRetries: number; retryDelayMs: number; }; secret?: string; status: "error" | "active" | "inactive" | "suspended"; updatedAt: Date; url: string; } | null>

WebhookRuntime.getEndpoint


listDeliveries(options?): Promise<object[]>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:268

WebhookDeliveryListOptions = {}

Promise<object[]>

WebhookRuntime.listDeliveries


listEndpoints(): Promise<object[]>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:177

Promise<object[]>

WebhookRuntime.listEndpoints


probeEndpoint(input): Promise<WebhookTestResult>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:182

string | WebhookRuntimeTestPayload

Promise<WebhookTestResult>

WebhookRuntime.probeEndpoint


removeEndpoint(endpointId): Promise<void>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:167

string

Promise<void>

WebhookRuntime.removeEndpoint


shutdown(): Promise<void>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:278

Promise<void>

WebhookRuntime.shutdown


updateEndpoint(endpointId, updates): Promise<{ active: boolean; createdAt: Date; description?: string; events: WebhookEventType[]; filters?: { channelId?: string[]; providerId?: string[]; templateId?: string[]; }; headers?: Record<string, string>; id: string; lastTriggeredAt?: Date; name?: string; retryConfig?: { backoffMultiplier: number; maxRetries: number; retryDelayMs: number; }; secret?: string; status: "error" | "active" | "inactive" | "suspended"; updatedAt: Date; url: string; }>

Defined in: packages/webhook/src/runtime/webhook-runtime.service.ts:131

string

Partial<WebhookEndpointInput>

Promise<{ active: boolean; createdAt: Date; description?: string; events: WebhookEventType[]; filters?: { channelId?: string[]; providerId?: string[]; templateId?: string[]; }; headers?: Record<string, string>; id: string; lastTriggeredAt?: Date; name?: string; retryConfig?: { backoffMultiplier: number; maxRetries: number; retryDelayMs: number; }; secret?: string; status: "error" | "active" | "inactive" | "suspended"; updatedAt: Date; url: string; }>

WebhookRuntime.updateEndpoint