Skip to content

Commit

Permalink
feat: event types for actions (#5907)
Browse files Browse the repository at this point in the history
Define event types for actions
  • Loading branch information
gastonfournier committed Jan 16, 2024
1 parent aeb9c85 commit 317e0e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/types/events.ts
Expand Up @@ -186,6 +186,10 @@ export const INCOMING_WEBHOOK_TOKEN_UPDATED =
export const INCOMING_WEBHOOK_TOKEN_DELETED =
'incoming-webhook-token-deleted' as const;

export const ACTIONS_CREATED = 'actions-created' as const;
export const ACTIONS_UPDATED = 'actions-updated' as const;
export const ACTIONS_DELETED = 'actions-deleted' as const;

export const IEventTypes = [
APPLICATION_CREATED,
FEATURE_CREATED,
Expand Down Expand Up @@ -326,6 +330,9 @@ export const IEventTypes = [
INCOMING_WEBHOOK_TOKEN_CREATED,
INCOMING_WEBHOOK_TOKEN_UPDATED,
INCOMING_WEBHOOK_TOKEN_DELETED,
ACTIONS_CREATED,
ACTIONS_UPDATED,
ACTIONS_DELETED,
] as const;
export type IEventType = (typeof IEventTypes)[number];

Expand Down

0 comments on commit 317e0e7

Please sign in to comment.