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:
parent
82ab60634d
commit
065fd4b469
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user