Skip to content

Commit 065fd4b

Browse files
authored
chore: archive release plan template event (#9414)
1 parent 82ab606 commit 065fd4b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/lib/types/events.ts

+17
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ export const RELEASE_PLAN_TEMPLATE_UPDATED =
210210
'release-plan-template-updated' as const;
211211
export const RELEASE_PLAN_TEMPLATE_DELETED =
212212
'release-plan-template-deleted' as const;
213+
export const RELEASE_PLAN_TEMPLATE_ARCHIVED =
214+
'release-plan-template-archived' as const;
213215

214216
export const RELEASE_PLAN_ADDED = 'release-plan-added' as const;
215217
export const RELEASE_PLAN_REMOVED = 'release-plan-removed' as const;
@@ -370,6 +372,7 @@ export const IEventTypes = [
370372
RELEASE_PLAN_TEMPLATE_CREATED,
371373
RELEASE_PLAN_TEMPLATE_UPDATED,
372374
RELEASE_PLAN_TEMPLATE_DELETED,
375+
RELEASE_PLAN_TEMPLATE_ARCHIVED,
373376
RELEASE_PLAN_ADDED,
374377
RELEASE_PLAN_REMOVED,
375378
RELEASE_PLAN_MILESTONE_STARTED,
@@ -2094,6 +2097,20 @@ export class ReleasePlanTemplateDeletedEvent extends BaseEvent {
20942097
}
20952098
}
20962099

2100+
export class ReleasePlanTemplateArchivedEvent extends BaseEvent {
2101+
readonly preData: any;
2102+
readonly data: any;
2103+
constructor(eventData: {
2104+
data: any;
2105+
preData: any;
2106+
auditUser: IAuditUser;
2107+
}) {
2108+
super(RELEASE_PLAN_TEMPLATE_ARCHIVED, eventData.auditUser);
2109+
this.data = eventData.data;
2110+
this.preData = eventData.preData;
2111+
}
2112+
}
2113+
20972114
export class ReleasePlanAddedEvent extends BaseEvent {
20982115
readonly project: string;
20992116
readonly featureName: string;

0 commit comments

Comments
 (0)