1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-23 00:16:25 +01:00

chore: archive release plan template event (#9414)

This commit is contained in:
David Leek 2025-03-05 08:08:28 +01:00 committed by GitHub
parent 82ab60634d
commit 065fd4b469
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,6 +210,8 @@ export const RELEASE_PLAN_TEMPLATE_UPDATED =
'release-plan-template-updated' as const;
export const RELEASE_PLAN_TEMPLATE_DELETED =
'release-plan-template-deleted' as const;
export const RELEASE_PLAN_TEMPLATE_ARCHIVED =
'release-plan-template-archived' as const;
export const RELEASE_PLAN_ADDED = 'release-plan-added' as const;
export const RELEASE_PLAN_REMOVED = 'release-plan-removed' as const;
@ -370,6 +372,7 @@ export const IEventTypes = [
RELEASE_PLAN_TEMPLATE_CREATED,
RELEASE_PLAN_TEMPLATE_UPDATED,
RELEASE_PLAN_TEMPLATE_DELETED,
RELEASE_PLAN_TEMPLATE_ARCHIVED,
RELEASE_PLAN_ADDED,
RELEASE_PLAN_REMOVED,
RELEASE_PLAN_MILESTONE_STARTED,
@ -2094,6 +2097,20 @@ export class ReleasePlanTemplateDeletedEvent extends BaseEvent {
}
}
export class ReleasePlanTemplateArchivedEvent extends BaseEvent {
readonly preData: any;
readonly data: any;
constructor(eventData: {
data: any;
preData: any;
auditUser: IAuditUser;
}) {
super(RELEASE_PLAN_TEMPLATE_ARCHIVED, eventData.auditUser);
this.data = eventData.data;
this.preData = eventData.preData;
}
}
export class ReleasePlanAddedEvent extends BaseEvent {
readonly project: string;
readonly featureName: string;