mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +02:00
https://linear.app/unleash/issue/2-3344/new-name-access-overview-instead-of-access-matrix Renames Access Matrix to Access Overview, both internally (code) and externally (UI).
43 lines
939 B
TypeScript
43 lines
939 B
TypeScript
import type {
|
|
ROOT_PERMISSION_TYPE,
|
|
PROJECT_PERMISSION_TYPE,
|
|
ENVIRONMENT_PERMISSION_TYPE,
|
|
} from '@server/util/constants';
|
|
|
|
export type PermissionType =
|
|
| typeof ROOT_PERMISSION_TYPE
|
|
| typeof PROJECT_PERMISSION_TYPE
|
|
| typeof ENVIRONMENT_PERMISSION_TYPE;
|
|
|
|
export interface IPermission {
|
|
name: string;
|
|
displayName: string;
|
|
type: PermissionType;
|
|
environment?: string;
|
|
}
|
|
|
|
export interface IPermissions {
|
|
root: IPermission[];
|
|
project: IPermission[];
|
|
environments: IProjectEnvironmentPermissions[];
|
|
}
|
|
|
|
export interface IProjectEnvironmentPermissions {
|
|
name: string;
|
|
permissions: IPermission[];
|
|
}
|
|
|
|
export interface ICheckedPermissions {
|
|
[key: string]: IPermission;
|
|
}
|
|
|
|
export interface IPermissionCategory {
|
|
label: string;
|
|
type: PermissionType;
|
|
permissions: IPermission[];
|
|
}
|
|
|
|
export interface IAccessOverviewPermission extends IPermission {
|
|
hasPermission: boolean;
|
|
}
|