Skip to content

Commit

Permalink
chore: archive release plan template event (#9414)
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek authored Mar 5, 2025
1 parent 82ab606 commit 065fd4b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/lib/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 065fd4b

Please sign in to comment.