Skip to content

Commit 4133af6

Browse files
author
Andre Turner
committed
revised flowchart and granter for engagement workflow
1 parent 2d39f81 commit 4133af6

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Injectable } from '@nestjs/common';
2+
import { WorkflowFlowchart } from '../../workflow/workflow.flowchart';
3+
import { EngagementWorkflow } from './engagement-workflow';
4+
5+
@Injectable()
6+
export class EngagementWorkflowFlowchart extends WorkflowFlowchart(
7+
() => EngagementWorkflow,
8+
) {}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Granter } from '../../authorization';
2+
import { WorkflowEventGranter } from '../../workflow/workflow.granter';
3+
import { EngagementWorkflowEvent as Event } from './dto';
4+
import { EngagementWorkflow } from './engagement-workflow';
5+
6+
@Granter(Event)
7+
export class EngagementWorkflowEventGranter extends WorkflowEventGranter(
8+
() => EngagementWorkflow,
9+
) {}
10+
11+
declare module '../../authorization/policy/granters' {
12+
interface GrantersOverride {
13+
EngagementWorkflowEvent: EngagementWorkflowEventGranter;
14+
}
15+
}

0 commit comments

Comments
 (0)