⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
types
/
Edit File: teams.ts
import { Team as TeamDTO } from '@grafana/schema/src/raw/team/x/team_types.gen'; import { Role } from './accessControl'; import { TeamPermissionLevel } from './acl'; // The team resource export { TeamDTO }; // This is the team resource with permissions and metadata expanded export interface Team { id: number; // TODO switch to UUID /** * AccessControl metadata associated with a given resource. */ accessControl?: Record<string, boolean>; /** * AvatarUrl is the team's avatar URL. */ avatarUrl?: string; /** * Email of the team. */ email?: string; /** * MemberCount is the number of the team members. */ memberCount: number; /** * Name of the team. */ name: string; /** * OrgId is the ID of an organisation the team belongs to. */ orgId: number; /** * TODO - it seems it's a team_member.permission, unlikely it should belong to the team kind */ permission: TeamPermissionLevel; /** * RBAC roles assigned to the team. */ roles?: Role[]; } export interface TeamMember { userId: number; teamId: number; avatarUrl: string; email: string; name: string; login: string; labels: string[]; permission: number; } export interface TeamGroup { groupId: string; teamId: number; } export interface TeamsState { teams: Team[]; page: number; query: string; perPage: number; noTeams: boolean; totalPages: number; hasFetched: boolean; sort?: string; rolesLoading?: boolean; } export interface TeamState { team: Team; members: TeamMember[]; groups: TeamGroup[]; searchMemberQuery: string; }
Simpan