Skip to content

Latest commit

 

History

History
145 lines (83 loc) · 3.26 KB

File metadata and controls

145 lines (83 loc) · 3.26 KB

@envoy/envoy-integrations-sdk / EnvoyResponse

Interface: EnvoyResponse<Body>

Use to type your res object in Envoy event handlers.

Type parameters

Name Type
Body Body = unknown

Hierarchy

  • Response

    EnvoyResponse

Table of contents

Properties

Properties

send

send: (body?: Body) => EnvoyResponse<Body>

Type declaration

▸ (body?): EnvoyResponse<Body>

Parameters
Name Type
body? Body
Returns

EnvoyResponse<Body>

Overrides

Response.send

Defined in

sdk/EnvoyResponse.ts:12


sendFailed

sendFailed: (message: string, debugInfo?: unknown, ...attachments: EnvoyPluginJobAttachment[]) => void

Marks the job as "failed". The message will be communicated to the Envoy Dashboard user.

sendFailedScreen

sendFailedScreen: (message: string, debugInfo?: unknown, ...attachments: EnvoyPluginScreenerJobAttachment, ) => void

Halts processing of the job. The message will be communicated to the Envoy Dashboard user and a pop up modal for access approval will be displayed.

Type declaration

▸ (message, debugInfo?, ...attachments): void

Parameters
Name Type
message string
debugInfo? unknown
...attachments EnvoyPluginJobAttachment[]
Returns

void

Defined in

sdk/EnvoyResponse.ts:27


sendIgnored

sendIgnored: (message: string, debugInfo?: unknown, ...attachments: EnvoyPluginJobAttachment[]) => void

Marks the job as "ignored". Useful when you explicitly do not want to handle the event.

Type declaration

▸ (message, debugInfo?, ...attachments): void

Parameters
Name Type
message string
debugInfo? unknown
...attachments EnvoyPluginJobAttachment[]
Returns

void

Defined in

sdk/EnvoyResponse.ts:22


sendOngoing

sendOngoing: (debugInfo?: unknown) => void

Marks the job as "ongoing". This is useful for long-running event handling. Later on, you should update the job using EnvoyPluginJob.complete, EnvoyPluginJob.fail, or EnvoyPluginJob.ignore.

Type declaration

▸ (debugInfo?): void

Parameters
Name Type
debugInfo? unknown
Returns

void

Defined in

sdk/EnvoyResponse.ts:18