import { IGroup } from '../user/group'; import { IWorkspaceOutput } from './workspace'; import { IWorkspacePermission } from './workspace-permission'; export interface IWorkspaceRoleBase { id: number; name: string; permission: IWorkspacePermission; } export interface IWorkspaceRole extends IWorkspaceRoleBase { groupId: number; workspaceId: string; } export interface IWorkspaceRoleOutput extends IWorkspaceRoleBase { group: IGroup; workspace: IWorkspaceOutput; } export interface IWorkspaceRoleCreateInput { name: string; permission: IWorkspacePermission; groupId: number; workspaceId: string; } export interface IWorkspaceRoleUpdateInput extends Partial { id: number; } export interface IWorkspaceRoleDeleteInput { id: number; }