From 473741a65ef7ff6fecd3fd85b96dfd1e7cfe1e58 Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Tue, 28 Nov 2023 10:39:08 +0200 Subject: [PATCH] chore: Add environment mutation events (c.u.d) (#5455) Adds the events for create, update and delete environment Relates to: [CTO-41](https://linear.app/unleash/issue/CTO-41/environment-mutation-not-in-event-log) Signed-off-by: andreas-unleash --- src/lib/types/events.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/types/events.ts b/src/lib/types/events.ts index b4a205f8bd..8f942efb5c 100644 --- a/src/lib/types/events.ts +++ b/src/lib/types/events.ts @@ -96,6 +96,9 @@ export const USER_UPDATED = 'user-updated' as const; export const USER_DELETED = 'user-deleted' as const; export const DROP_ENVIRONMENTS = 'drop-environments' as const; export const ENVIRONMENT_IMPORT = 'environment-import' as const; +export const ENVIRONMENT_CREATED = 'environment-created' as const; +export const ENVIRONMENT_UPDATED = 'environment-updated' as const; +export const ENVIRONMENT_DELETED = 'environment-deleted' as const; export const SEGMENT_CREATED = 'segment-created' as const; export const SEGMENT_UPDATED = 'segment-updated' as const; export const SEGMENT_DELETED = 'segment-deleted' as const; @@ -236,6 +239,9 @@ export const IEventTypes = [ USER_DELETED, DROP_ENVIRONMENTS, ENVIRONMENT_IMPORT, + ENVIRONMENT_CREATED, + ENVIRONMENT_UPDATED, + ENVIRONMENT_DELETED, SEGMENT_CREATED, SEGMENT_UPDATED, SEGMENT_DELETED,