Skip to content

Commit d9392c5

Browse files
author
Andre Turner
committed
enagement-transition event
1 parent 490360a commit d9392c5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)