1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

added delete entity user apis

This commit is contained in:
Kyle Spearrin
2018-07-09 23:47:12 -04:00
parent 89e71d7c16
commit 049e129f36
2 changed files with 13 additions and 0 deletions

View File

@@ -398,6 +398,12 @@ export class ApiService implements ApiServiceAbstraction {
return this.send('DELETE', '/organizations/' + organizationId + '/collections/' + id, null, true, false);
}
deleteCollectionUser(organizationId: string, id: string, organizationUserId: string): Promise<any> {
return this.send('DELETE',
'/organizations/' + organizationId + '/collections/' + id + '/user/' + organizationUserId,
null, true, false);
}
// Groups APIs
async getGroupDetails(organizationId: string, id: string): Promise<GroupDetailsResponse> {
@@ -431,6 +437,11 @@ export class ApiService implements ApiServiceAbstraction {
return this.send('DELETE', '/organizations/' + organizationId + '/groups/' + id, null, true, false);
}
deleteGroupUser(organizationId: string, id: string, organizationUserId: string): Promise<any> {
return this.send('DELETE',
'/organizations/' + organizationId + '/groups/' + id + '/user/' + organizationUserId, null, true, false);
}
// Organization User APIs
async getOrganizationUsers(organizationId: string): Promise<ListResponse<OrganizationUserUserDetailsResponse>> {