mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01:00
feat: unified milestone progression changed event (#10836)
This commit is contained in:
parent
14b4809c8e
commit
859e3bbdde
@ -210,6 +210,8 @@ export const MILESTONE_PROGRESSION_UPDATED =
|
||||
'milestone-progression-updated' as const;
|
||||
export const MILESTONE_PROGRESSION_DELETED =
|
||||
'milestone-progression-deleted' as const;
|
||||
export const MILESTONE_PROGRESSION_CHANGED =
|
||||
'milestone-progression-changed' as const;
|
||||
|
||||
export const RELEASE_PLAN_ADDED = 'release-plan-added' as const;
|
||||
export const RELEASE_PLAN_REMOVED = 'release-plan-removed' as const;
|
||||
@ -384,6 +386,7 @@ export const IEventTypes = [
|
||||
MILESTONE_PROGRESSION_CREATED,
|
||||
MILESTONE_PROGRESSION_UPDATED,
|
||||
MILESTONE_PROGRESSION_DELETED,
|
||||
MILESTONE_PROGRESSION_CHANGED,
|
||||
USER_PREFERENCE_UPDATED,
|
||||
SCIM_USERS_DELETED,
|
||||
SCIM_GROUPS_DELETED,
|
||||
|
||||
@ -124,6 +124,7 @@ import {
|
||||
MILESTONE_PROGRESSION_CREATED,
|
||||
MILESTONE_PROGRESSION_UPDATED,
|
||||
MILESTONE_PROGRESSION_DELETED,
|
||||
MILESTONE_PROGRESSION_CHANGED,
|
||||
} from '../events/index.js';
|
||||
import type { ITag } from '../tags/index.js';
|
||||
import type { IClientApplication } from './stores/client-applications-store.js';
|
||||
@ -1872,6 +1873,29 @@ export class MilestoneProgressionDeletedEvent extends BaseEvent {
|
||||
}
|
||||
}
|
||||
|
||||
export class MilestoneProgressionChangedEvent extends BaseEvent {
|
||||
readonly project: string;
|
||||
readonly environment: string;
|
||||
readonly featureName: string;
|
||||
readonly preData: any;
|
||||
readonly data: any;
|
||||
constructor(eventData: {
|
||||
project: string;
|
||||
environment: string;
|
||||
featureName: string;
|
||||
data: any;
|
||||
preData?: any;
|
||||
auditUser: IAuditUser;
|
||||
}) {
|
||||
super(MILESTONE_PROGRESSION_CHANGED, eventData.auditUser);
|
||||
this.project = eventData.project;
|
||||
this.environment = eventData.environment;
|
||||
this.featureName = eventData.featureName;
|
||||
this.data = eventData.data;
|
||||
this.preData = eventData.preData;
|
||||
}
|
||||
}
|
||||
|
||||
export class ReleasePlanTemplateCreatedEvent extends BaseEvent {
|
||||
readonly data: any;
|
||||
constructor(eventData: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user