1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00

feat: event types for actions (#5907)

Define event types for actions
This commit is contained in:
Gastón Fournier 2024-01-16 11:59:09 +01:00 committed by GitHub
parent aeb9c85f11
commit 317e0e7ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
@ -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];