Skip to content

Commit

Permalink
chore: incoming webhook events (#5693)
Browse files Browse the repository at this point in the history
https://linear.app/unleash/issue/2-1748/create-new-incoming-webhook-events

Adds new events for write operations on incoming webhooks and their
tokens.
  • Loading branch information
nunogois authored Dec 20, 2023
1 parent 218d562 commit 1a79921
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/lib/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,17 @@ export const BANNER_CREATED = 'banner-created' as const;
export const BANNER_UPDATED = 'banner-updated' as const;
export const BANNER_DELETED = 'banner-deleted' as const;

export const INCOMING_WEBHOOK_CREATED = 'incoming-webhook-created' as const;
export const INCOMING_WEBHOOK_UPDATED = 'incoming-webhook-updated' as const;
export const INCOMING_WEBHOOK_DELETED = 'incoming-webhook-deleted' as const;

export const INCOMING_WEBHOOK_TOKEN_CREATED =
'incoming-webhook-token-created' as const;
export const INCOMING_WEBHOOK_TOKEN_UPDATED =
'incoming-webhook-token-updated' as const;
export const INCOMING_WEBHOOK_TOKEN_DELETED =
'incoming-webhook-token-deleted' as const;

export const IEventTypes = [
APPLICATION_CREATED,
FEATURE_CREATED,
Expand Down Expand Up @@ -309,6 +320,12 @@ export const IEventTypes = [
PROJECT_ENVIRONMENT_REMOVED,
DEFAULT_STRATEGY_UPDATED,
SEGMENT_IMPORT,
INCOMING_WEBHOOK_CREATED,
INCOMING_WEBHOOK_UPDATED,
INCOMING_WEBHOOK_DELETED,
INCOMING_WEBHOOK_TOKEN_CREATED,
INCOMING_WEBHOOK_TOKEN_UPDATED,
INCOMING_WEBHOOK_TOKEN_DELETED,
] as const;
export type IEventType = (typeof IEventTypes)[number];

Expand Down

0 comments on commit 1a79921

Please sign in to comment.