mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
22 lines
435 B
TypeScript
22 lines
435 B
TypeScript
|
export interface IPermission {
|
||
|
id: number;
|
||
|
name: string;
|
||
|
displayName: string;
|
||
|
environment?: string;
|
||
|
}
|
||
|
|
||
|
export interface IPermissions {
|
||
|
root: IPermission[];
|
||
|
project: IPermission[];
|
||
|
environments: IProjectEnvironmentPermissions[];
|
||
|
}
|
||
|
|
||
|
export interface IProjectEnvironmentPermissions {
|
||
|
name: string;
|
||
|
permissions: IPermission[];
|
||
|
}
|
||
|
|
||
|
export interface ICheckedPermissions {
|
||
|
[key: string]: IPermission;
|
||
|
}
|