mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-05 05:42:16 +00:00
feat(console): events (#5092)
Shows the list of events on instance level
This commit is contained in:
@@ -204,6 +204,12 @@ import {
|
||||
GetSecurityPolicyResponse,
|
||||
SetSecurityPolicyRequest,
|
||||
SetSecurityPolicyResponse,
|
||||
ListEventsResponse,
|
||||
ListEventsRequest,
|
||||
ListEventTypesRequest,
|
||||
ListEventTypesResponse,
|
||||
ListAggregateTypesRequest,
|
||||
ListAggregateTypesResponse,
|
||||
GetNotificationPolicyRequest,
|
||||
GetNotificationPolicyResponse,
|
||||
UpdateNotificationPolicyRequest,
|
||||
@@ -227,6 +233,18 @@ import { GrpcService } from './grpc.service';
|
||||
export class AdminService {
|
||||
constructor(private readonly grpcService: GrpcService) {}
|
||||
|
||||
public listEvents(req: ListEventsRequest): Promise<ListEventsResponse> {
|
||||
return this.grpcService.admin.listEvents(req, null).then((resp) => resp);
|
||||
}
|
||||
|
||||
public listEventTypes(req: ListEventTypesRequest): Promise<ListEventTypesResponse.AsObject> {
|
||||
return this.grpcService.admin.listEventTypes(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public listAggregateTypes(req: ListAggregateTypesRequest): Promise<ListAggregateTypesResponse.AsObject> {
|
||||
return this.grpcService.admin.listAggregateTypes(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public getSupportedLanguages(): Promise<GetSupportedLanguagesResponse.AsObject> {
|
||||
const req = new GetSupportedLanguagesRequest();
|
||||
return this.grpcService.admin.getSupportedLanguages(req, null).then((resp) => resp.toObject());
|
||||
|
||||
Reference in New Issue
Block a user