mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
[PM-22442] Refactor ApiService: Remove unused methods for collection user management (#15208)
This commit is contained in:
@@ -28,7 +28,6 @@ import { ProviderUserBulkRequest } from "../admin-console/models/request/provide
|
||||
import { ProviderUserConfirmRequest } from "../admin-console/models/request/provider/provider-user-confirm.request";
|
||||
import { ProviderUserInviteRequest } from "../admin-console/models/request/provider/provider-user-invite.request";
|
||||
import { ProviderUserUpdateRequest } from "../admin-console/models/request/provider/provider-user-update.request";
|
||||
import { SelectionReadOnlyRequest } from "../admin-console/models/request/selection-read-only.request";
|
||||
import {
|
||||
OrganizationConnectionConfigApis,
|
||||
OrganizationConnectionResponse,
|
||||
@@ -774,20 +773,6 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return new CollectionAccessDetailsResponse(r);
|
||||
}
|
||||
|
||||
async putCollectionUsers(
|
||||
organizationId: string,
|
||||
id: string,
|
||||
request: SelectionReadOnlyRequest[],
|
||||
): Promise<any> {
|
||||
await this.send(
|
||||
"PUT",
|
||||
"/organizations/" + organizationId + "/collections/" + id + "/users",
|
||||
request,
|
||||
true,
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
||||
deleteCollection(organizationId: string, id: string): Promise<any> {
|
||||
return this.send(
|
||||
"DELETE",
|
||||
@@ -808,20 +793,6 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
);
|
||||
}
|
||||
|
||||
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 getGroupUsers(organizationId: string, id: string): Promise<string[]> {
|
||||
|
||||
Reference in New Issue
Block a user