mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Schema: Move TeamDTO properties out of the resource (#68155)
This commit is contained in:
@@ -140,6 +140,3 @@ export { defaultServiceAccount } from './raw/serviceaccount/x/serviceaccount_typ
|
||||
|
||||
// Raw generated types from Team kind.
|
||||
export type { Team } from './raw/team/x/team_types.gen';
|
||||
|
||||
// Raw generated enums and default consts from team kind.
|
||||
export { Permission } from './raw/team/x/team_types.gen';
|
||||
|
||||
@@ -8,40 +8,13 @@
|
||||
//
|
||||
// Run 'make gen-cue' from repository root to regenerate.
|
||||
|
||||
export enum Permission {
|
||||
Admin = 4,
|
||||
Editor = 2,
|
||||
Member = 0,
|
||||
Viewer = 1,
|
||||
}
|
||||
|
||||
export interface Team {
|
||||
/**
|
||||
* 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: Permission;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user