We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 490360a commit d9392c5Copy full SHA for d9392c5
src/components/engagement/workflow/events/engagement-transitioned.event.ts
@@ -0,0 +1,15 @@
1
+import type { UnsecuredDto } from '~/common';
2
+import type { Engagement, EngagementStatus } from '../../dto';
3
+import type { EngagementWorkflowEvent as WorkflowEvent } from '../dto';
4
+import type { EngagementWorkflow } from '../engagement-workflow';
5
+
6
+export class EngagementTransitionedEvent {
7
+ constructor(
8
+ readonly engagement: Engagement,
9
+ readonly previousStep: EngagementStatus,
10
+ readonly next:
11
+ | (typeof EngagementWorkflow)['resolvedTransition']
12
+ | EngagementStatus,
13
+ readonly workflowEvent: UnsecuredDto<WorkflowEvent>,
14
+ ) {}
15
+}
0 commit comments