WebhookDeliveryStore
Defined in: packages/webhook/src/runtime/types.ts:47
Methods
섹션 제목: “Methods”add()
섹션 제목: “add()”add(
delivery):Promise<void>
Defined in: packages/webhook/src/runtime/types.ts:49
Stores a new delivery; ids are unique, so use replace() to overwrite.
Parameters
섹션 제목: “Parameters”delivery
섹션 제목: “delivery”attempts
섹션 제목: “attempts”object[] = ...
completedAt?
섹션 제목: “completedAt?”Date = ...
createdAt
섹션 제목: “createdAt”Date = ...
endpointId
섹션 제목: “endpointId”string = ...
eventId
섹션 제목: “eventId”string = ...
eventType?
섹션 제목: “eventType?”MESSAGE_SENT | MESSAGE_DELIVERED | MESSAGE_FAILED | MESSAGE_CLICKED | MESSAGE_READ | MESSAGE_CANCELLED | MESSAGE_UNKNOWN | TEMPLATE_CREATED | TEMPLATE_APPROVED | TEMPLATE_REJECTED | TEMPLATE_UPDATED | TEMPLATE_DELETED | CHANNEL_CREATED | CHANNEL_VERIFIED | SENDER_NUMBER_ADDED | SENDER_NUMBER_VERIFIED | QUOTA_WARNING | QUOTA_EXCEEDED | PROVIDER_ERROR | SYSTEM_MAINTENANCE | ANOMALY_DETECTED | THRESHOLD_EXCEEDED = ...
headers
섹션 제목: “headers”Record<string, string> = ...
httpMethod
섹션 제목: “httpMethod”"POST" | "PUT" | "PATCH" = ...
string = ...
nextRetryAt?
섹션 제목: “nextRetryAt?”Date = ...
payload
섹션 제목: “payload”string = ...
status
섹션 제목: “status”"failed" | "success" | "pending" | "exhausted" = ...
url
섹션 제목: “url”string = ...
Returns
섹션 제목: “Returns”Promise<void>
list()
섹션 제목: “list()”list(
options?):Promise<object[]>
Defined in: packages/webhook/src/runtime/types.ts:50
Parameters
섹션 제목: “Parameters”options?
섹션 제목: “options?”Returns
섹션 제목: “Returns”Promise<object[]>
replace()?
섹션 제목: “replace()?”
optionalreplace(delivery):Promise<void>
Defined in: packages/webhook/src/runtime/types.ts:56
Overwrites the stored delivery with the same id. Optional; the tenant migration needs it to re-encrypt stored payloads, and the built-in stores implement it.
Parameters
섹션 제목: “Parameters”delivery
섹션 제목: “delivery”attempts
섹션 제목: “attempts”object[] = ...
completedAt?
섹션 제목: “completedAt?”Date = ...
createdAt
섹션 제목: “createdAt”Date = ...
endpointId
섹션 제목: “endpointId”string = ...
eventId
섹션 제목: “eventId”string = ...
eventType?
섹션 제목: “eventType?”MESSAGE_SENT | MESSAGE_DELIVERED | MESSAGE_FAILED | MESSAGE_CLICKED | MESSAGE_READ | MESSAGE_CANCELLED | MESSAGE_UNKNOWN | TEMPLATE_CREATED | TEMPLATE_APPROVED | TEMPLATE_REJECTED | TEMPLATE_UPDATED | TEMPLATE_DELETED | CHANNEL_CREATED | CHANNEL_VERIFIED | SENDER_NUMBER_ADDED | SENDER_NUMBER_VERIFIED | QUOTA_WARNING | QUOTA_EXCEEDED | PROVIDER_ERROR | SYSTEM_MAINTENANCE | ANOMALY_DETECTED | THRESHOLD_EXCEEDED = ...
headers
섹션 제목: “headers”Record<string, string> = ...
httpMethod
섹션 제목: “httpMethod”"POST" | "PUT" | "PATCH" = ...
string = ...
nextRetryAt?
섹션 제목: “nextRetryAt?”Date = ...
payload
섹션 제목: “payload”string = ...
status
섹션 제목: “status”"failed" | "success" | "pending" | "exhausted" = ...
url
섹션 제목: “url”string = ...
Returns
섹션 제목: “Returns”Promise<void>