feat: failed events (#582)

This commit is contained in:
Max Peintner
2020-08-13 07:42:16 +02:00
committed by GitHub
parent 65058ed17c
commit 2f404be7c6
19 changed files with 300 additions and 130 deletions
+22
View File
@@ -8,6 +8,8 @@ import {
ChangeIamMemberRequest,
CreateOrgRequest,
CreateUserRequest,
FailedEventID,
FailedEvents,
IamMember,
IamMemberRoles,
IamMemberSearchQuery,
@@ -78,6 +80,14 @@ export class AdminService {
);
}
public async GetFailedEvents(): Promise<FailedEvents> {
return await this.request(
c => c.getFailedEvents,
new Empty(),
f => f,
);
}
public async ClearView(viewname: string, db: string): Promise<Empty> {
const req: ViewID = new ViewID();
req.setDatabase(db);
@@ -89,6 +99,18 @@ export class AdminService {
);
}
public async RemoveFailedEvent(viewname: string, db: string, sequence: number): Promise<Empty> {
const req: FailedEventID = new FailedEventID();
req.setDatabase(db);
req.setViewName(viewname);
req.setFailedSequence(sequence);
return await this.request(
c => c.removeFailedEvent,
req,
f => f,
);
}
public async SearchIamMembers(
limit: number,
offset: number,