mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
* replace getOrgKey with orgKey$, refactor collectionAdminService * clean up * uncomment accidental commet * remove cache
25 lines
811 B
TypeScript
25 lines
811 B
TypeScript
import { Observable } from "rxjs";
|
|
|
|
import { CollectionDetailsResponse } from "@bitwarden/admin-console/common";
|
|
import { UserId } from "@bitwarden/common/types/guid";
|
|
|
|
import { CollectionAccessSelectionView, CollectionAdminView } from "../models";
|
|
|
|
export abstract class CollectionAdminService {
|
|
abstract collectionAdminViews$(
|
|
organizationId: string,
|
|
userId: UserId,
|
|
): Observable<CollectionAdminView[]>;
|
|
abstract save(
|
|
collection: CollectionAdminView,
|
|
userId: UserId,
|
|
): Promise<CollectionDetailsResponse>;
|
|
abstract delete(organizationId: string, collectionId: string): Promise<void>;
|
|
abstract bulkAssignAccess(
|
|
organizationId: string,
|
|
collectionIds: string[],
|
|
users: CollectionAccessSelectionView[],
|
|
groups: CollectionAccessSelectionView[],
|
|
): Promise<void>;
|
|
}
|