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

@ -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>>;

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>> {