Skip to content

Commit 0f16c42

Browse files
authored
feat(tem): update Webhook event status (#2144)
1 parent ad50e5f commit 0f16c42

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

api/tem/v1alpha1/tem_sdk.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,14 +487,12 @@ type WebhookEventStatus string
487487
const (
488488
// If unspecified, the status of the Webhook event is unknown by default.
489489
WebhookEventStatusUnknownStatus = WebhookEventStatus("unknown_status")
490-
// The Webhook event was created and is waiting to be sent.
491-
WebhookEventStatusWaiting = WebhookEventStatus("waiting")
492490
// The Webhook event is being sent.
493491
WebhookEventStatusSending = WebhookEventStatus("sending")
494492
// The Webhook event was sent.
495493
WebhookEventStatusSent = WebhookEventStatus("sent")
496494
// The Webhook event cannot be sent after multiple retries.
497-
WebhookEventStatusError = WebhookEventStatus("error")
495+
WebhookEventStatusFailed = WebhookEventStatus("failed")
498496
)
499497

500498
func (enum WebhookEventStatus) String() string {
@@ -508,10 +506,9 @@ func (enum WebhookEventStatus) String() string {
508506
func (enum WebhookEventStatus) Values() []WebhookEventStatus {
509507
return []WebhookEventStatus{
510508
"unknown_status",
511-
"waiting",
512509
"sending",
513510
"sent",
514-
"error",
511+
"failed",
515512
}
516513
}
517514

0 commit comments

Comments
 (0)