@devtron-labs/devtron-fe-common-lib 0.0.9-beta-8 → 0.0.9-beta-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VariableType } from "./CIPipeline.Types";
|
|
2
|
+
import { ResponseType } from "./Types";
|
|
2
3
|
export declare enum ApplyPolicyToStage {
|
|
3
4
|
PRE_CI = "PRE_CI",
|
|
4
5
|
POST_CI = "POST_CI",
|
|
@@ -44,3 +45,11 @@ export interface ConsequenceType {
|
|
|
44
45
|
action: ConsequenceAction;
|
|
45
46
|
metadataField: string;
|
|
46
47
|
}
|
|
48
|
+
export interface BlockedStateData {
|
|
49
|
+
isOffendingMandatoryPlugin: boolean;
|
|
50
|
+
isCITriggerBlocked: boolean;
|
|
51
|
+
ciBlockState: ConsequenceType;
|
|
52
|
+
}
|
|
53
|
+
export interface GetBlockedStateResponse extends ResponseType {
|
|
54
|
+
result?: BlockedStateData;
|
|
55
|
+
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VariableType } from "./CIPipeline.Types"
|
|
2
|
+
import { ResponseType } from "./Types"
|
|
2
3
|
|
|
3
4
|
export enum ApplyPolicyToStage {
|
|
4
5
|
PRE_CI = 'PRE_CI',
|
|
@@ -48,4 +49,14 @@ export enum ConsequenceAction {
|
|
|
48
49
|
export interface ConsequenceType {
|
|
49
50
|
action: ConsequenceAction
|
|
50
51
|
metadataField: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface BlockedStateData {
|
|
55
|
+
isOffendingMandatoryPlugin: boolean
|
|
56
|
+
isCITriggerBlocked: boolean
|
|
57
|
+
ciBlockState: ConsequenceType
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface GetBlockedStateResponse extends ResponseType {
|
|
61
|
+
result?: BlockedStateData
|
|
51
62
|
}
|