mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
added delete entity user apis
This commit is contained in:
parent
89e71d7c16
commit
049e129f36
@ -128,6 +128,7 @@ export abstract class ApiService {
|
||||
postCollection: (organizationId: string, request: CollectionRequest) => Promise<CollectionResponse>;
|
||||
putCollection: (organizationId: string, id: string, request: CollectionRequest) => Promise<CollectionResponse>;
|
||||
deleteCollection: (organizationId: string, id: string) => Promise<any>;
|
||||
deleteCollectionUser: (organizationId: string, id: string, organizationUserId: string) => Promise<any>;
|
||||
|
||||
getGroupDetails: (organizationId: string, id: string) => Promise<GroupDetailsResponse>;
|
||||
getGroups: (organizationId: string) => Promise<ListResponse<GroupResponse>>;
|
||||
@ -135,6 +136,7 @@ export abstract class ApiService {
|
||||
postGroup: (organizationId: string, request: GroupRequest) => Promise<GroupResponse>;
|
||||
putGroup: (organizationId: string, id: string, request: GroupRequest) => Promise<GroupResponse>;
|
||||
deleteGroup: (organizationId: string, id: string) => Promise<any>;
|
||||
deleteGroupUser: (organizationId: string, id: string, organizationUserId: string) => Promise<any>;
|
||||
|
||||
getOrganizationUsers: (organizationId: string) => Promise<ListResponse<OrganizationUserUserDetailsResponse>>;
|
||||
|
||||
|
@ -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>> {
|
||||
|
Loading…
Reference in New Issue
Block a user