diff --git a/shared/workspaces/src/workspaces/helpers.py b/shared/workspaces/src/workspaces/helpers.py index d8f48c5910a12e1f35e7697191500e2b81bfdf7c..1d1236e948426437f765e41a183d814200c9c390 100644 --- a/shared/workspaces/src/workspaces/helpers.py +++ b/shared/workspaces/src/workspaces/helpers.py @@ -67,11 +67,11 @@ class CapabilityStepType(Enum): Enum that specifies the types of CapabilitySteps that are possible """ PrepareAndRunWorkflow = 0 - AwaitQA = auto() - AwaitWorkflow = auto() - AwaitProduct = auto() - AwaitParameter = auto() - AwaitLargeAllocApproval = auto() + AwaitQA = 1 + AwaitWorkflow = 2 + AwaitProduct = 3 + AwaitParameter = 4 + AwaitLargeAllocApproval = 5 @classmethod def from_string(cls, string: str) -> CapabilityStepType: @@ -86,6 +86,20 @@ class CapabilityStepType(Enum): return strings[string] +class CapabilityEventType(Enum): + """ + Enum that specifies the type of CapabilityEvents possible to send + """ + WorkflowComplete = 0 + QaApproval = 1 + QaDenial = 1 + WorkflowReady = 2 + ProductReady = 3 + ParameterReady = 4 + LargeAllocApproval = 5 + LargeAllocDenial = 5 + + class RequestState(Enum): """ Enum that specifies the states that a capability request can be in