mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
List serviceaccounts (#43672)
* Serviceaccounts: feat - tabview for serviceaccounts * WIP * feat: listing all service accounts * refactor: needed to remove showInvitees as not present in serviceaccounts * add token column in the list * add token to orgserviceaccount * Update pkg/services/serviceaccounts/api/api.go
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
import { OrgRole, Unit } from '.';
|
||||
import { SelectableValue } from '@grafana/data';
|
||||
|
||||
export interface OrgServiceAccount {
|
||||
serviceAccountId: number;
|
||||
avatarUrl: string;
|
||||
email: string;
|
||||
lastSeenAt: string;
|
||||
lastSeenAtAge: string;
|
||||
login: string;
|
||||
name: string;
|
||||
displayName: string;
|
||||
orgId: number;
|
||||
role: OrgRole;
|
||||
serviceAccountId: number;
|
||||
tokens: number[];
|
||||
}
|
||||
|
||||
export interface ServiceAccount {
|
||||
@@ -20,6 +19,7 @@ export interface ServiceAccount {
|
||||
login: string;
|
||||
email: string;
|
||||
name: string;
|
||||
displayName: string;
|
||||
orgId?: number;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,6 @@ export interface ServiceAccountDTO {
|
||||
authLabels?: string[];
|
||||
avatarUrl?: string;
|
||||
orgId?: number;
|
||||
lastSeenAtAge?: string;
|
||||
licensedRole?: string;
|
||||
permissions?: string[];
|
||||
teams?: Unit[];
|
||||
@@ -48,29 +47,3 @@ export interface ServiceAccountsState {
|
||||
searchPage: number;
|
||||
isLoading: boolean;
|
||||
}
|
||||
|
||||
export interface ServiceAccountSession {
|
||||
id: number;
|
||||
createdAt: string;
|
||||
clientIp: string;
|
||||
isActive: boolean;
|
||||
seenAt: string;
|
||||
}
|
||||
|
||||
export interface ServiceAccountOrg {
|
||||
name: string;
|
||||
orgId: number;
|
||||
role: OrgRole;
|
||||
}
|
||||
|
||||
export type ServiceAccountFilter = Record<string, string | boolean | SelectableValue[]>;
|
||||
export interface ServiceaccountListAdminState {
|
||||
serviceaccounts: ServiceAccountDTO[];
|
||||
query: string;
|
||||
perPage: number;
|
||||
page: number;
|
||||
totalPages: number;
|
||||
showPaging: boolean;
|
||||
filters: ServiceAccountFilter[];
|
||||
isLoading: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user