We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f748a0f commit 1f06094Copy full SHA for 1f06094
src/Common/Policy.Types.ts
@@ -86,10 +86,18 @@ export enum ConsequenceAction {
86
ALLOW_FOREVER = 'ALLOW_FOREVER',
87
}
88
89
-export interface ConsequenceType {
90
- action: ConsequenceAction
91
- metadataField: string
92
-}
+export type ConsequenceType =
+ | {
+ action: Exclude<ConsequenceAction, ConsequenceAction.ALLOW_UNTIL_TIME>
+ metadataField?: never | null
93
+ }
94
95
+ action: ConsequenceAction.ALLOW_UNTIL_TIME
96
+ /**
97
+ * Denotes the time till which the policy enforcement is relaxed
98
+ */
99
+ metadataField: string
100
101
102
export interface BlockedStateData {
103
isOffendingMandatoryPlugin: boolean
0 commit comments