From d9392c56eb5af8404783842f631ed7ca99ce29a4 Mon Sep 17 00:00:00 2001 From: Andre Turner Date: Thu, 20 Jun 2024 18:06:32 -0500 Subject: [PATCH] enagement-transition event --- .../events/engagement-transitioned.event.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/components/engagement/workflow/events/engagement-transitioned.event.ts diff --git a/src/components/engagement/workflow/events/engagement-transitioned.event.ts b/src/components/engagement/workflow/events/engagement-transitioned.event.ts new file mode 100644 index 0000000000..064d180bd6 --- /dev/null +++ b/src/components/engagement/workflow/events/engagement-transitioned.event.ts @@ -0,0 +1,15 @@ +import type { UnsecuredDto } from '~/common'; +import type { Engagement, EngagementStatus } from '../../dto'; +import type { EngagementWorkflowEvent as WorkflowEvent } from '../dto'; +import type { EngagementWorkflow } from '../engagement-workflow'; + +export class EngagementTransitionedEvent { + constructor( + readonly engagement: Engagement, + readonly previousStep: EngagementStatus, + readonly next: + | (typeof EngagementWorkflow)['resolvedTransition'] + | EngagementStatus, + readonly workflowEvent: UnsecuredDto, + ) {} +}