@@ -14,23 +14,18 @@ import { EngagementRepository } from '../engagement.repository';
14
14
import { EngagementService } from '../engagement.service' ;
15
15
16
16
const changes : Change [ ] = [
17
- {
18
- to : { status : ProjectStatus . Active } ,
19
- newStatus : EngagementStatus . Active ,
20
- } ,
21
17
{
22
18
to : { step : ProjectStep . ActiveChangedPlan } ,
23
19
newStatus : EngagementStatus . ActiveChangedPlan ,
24
20
} ,
25
- {
26
- from : { status : ProjectStatus . Active } ,
27
- to : { status : ProjectStatus . InDevelopment } ,
28
- newStatus : EngagementStatus . InDevelopment ,
29
- } ,
30
21
{
31
22
to : { step : ProjectStep . DiscussingChangeToPlan } ,
32
23
newStatus : EngagementStatus . DiscussingChangeToPlan ,
33
24
} ,
25
+ {
26
+ to : { step : ProjectStep . DiscussingSuspension } ,
27
+ newStatus : EngagementStatus . DiscussingSuspension ,
28
+ } ,
34
29
{
35
30
to : { step : ProjectStep . Suspended } ,
36
31
newStatus : EngagementStatus . Suspended ,
@@ -63,6 +58,15 @@ const changes: Change[] = [
63
58
to : { step : ProjectStep . Terminated } ,
64
59
newStatus : EngagementStatus . Terminated ,
65
60
} ,
61
+ {
62
+ to : { status : ProjectStatus . Active } ,
63
+ newStatus : EngagementStatus . Active ,
64
+ } ,
65
+ {
66
+ from : { status : ProjectStatus . Active } ,
67
+ to : { status : ProjectStatus . InDevelopment } ,
68
+ newStatus : EngagementStatus . InDevelopment ,
69
+ } ,
66
70
] ;
67
71
68
72
type Change = RequireAtLeastOne < { from : Condition ; to : Condition } > & {
0 commit comments