-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handle validation result level
- Loading branch information
1 parent
9a6f172
commit 06ae34f
Showing
2 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import {Resource} from '../../common/types.js'; | ||
import {RuleLevel} from '../../commonExports.js'; | ||
|
||
export type Expression = { | ||
expression: string; | ||
message: string; | ||
}; | ||
|
||
export type PolicyExpressionsAndFilteredResources = Record<string, {expressions: Expression[]; resources: Resource[]}>; | ||
export type PolicyExpressionsAndFilteredResources = Record< | ||
string, | ||
{expressions: Expression[]; resources: Resource[]; level: RuleLevel} | ||
>; | ||
|
||
export type PolicyBindingFilterResponse = Record<string, {resources: Resource[]; level: RuleLevel}>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters