Skip to content

Commit

Permalink
feat(applications): add conditions to access rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinperaza committed Nov 15, 2022
1 parent 16c6636 commit 4a2b7f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/types/models/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,15 @@ interface AccessRule {
container: string;
transform: TransformType;
permissions: string[];
conditions: Condition[];
}

type Condition = {
attribute: string;
operator: string;
value: string;
};

type CreateApplication = Pick<Application, 'name' | 'type'> &
Partial<Pick<Application, 'permissions' | 'rules'>>;

Expand Down

0 comments on commit 4a2b7f6

Please sign in to comment.