diff --git a/libs/admin-console/src/common/collections/abstractions/collection-admin.service.ts b/libs/admin-console/src/common/collections/abstractions/collection-admin.service.ts index 083539e9f6e..61faabb16b8 100644 --- a/libs/admin-console/src/common/collections/abstractions/collection-admin.service.ts +++ b/libs/admin-console/src/common/collections/abstractions/collection-admin.service.ts @@ -4,20 +4,20 @@ import { UserId } from "@bitwarden/common/types/guid"; import { CollectionAccessSelectionView, CollectionAdminView } from "../models"; export abstract class CollectionAdminService { - abstract getAll: (organizationId: string) => Promise; - abstract get: ( + abstract getAll(organizationId: string): Promise; + abstract get( organizationId: string, collectionId: string, - ) => Promise; - abstract save: ( + ): Promise; + abstract save( collection: CollectionAdminView, userId: UserId, - ) => Promise; - abstract delete: (organizationId: string, collectionId: string) => Promise; - abstract bulkAssignAccess: ( + ): Promise; + abstract delete(organizationId: string, collectionId: string): Promise; + abstract bulkAssignAccess( organizationId: string, collectionIds: string[], users: CollectionAccessSelectionView[], groups: CollectionAccessSelectionView[], - ) => Promise; + ): Promise; } diff --git a/libs/admin-console/src/common/collections/abstractions/collection.service.ts b/libs/admin-console/src/common/collections/abstractions/collection.service.ts index e69f96232da..dabaf078e16 100644 --- a/libs/admin-console/src/common/collections/abstractions/collection.service.ts +++ b/libs/admin-console/src/common/collections/abstractions/collection.service.ts @@ -7,25 +7,25 @@ import { TreeNode } from "@bitwarden/common/vault/models/domain/tree-node"; import { CollectionData, Collection, CollectionView } from "../models"; export abstract class CollectionService { - abstract encryptedCollections$: (userId: UserId) => Observable; - abstract decryptedCollections$: (userId: UserId) => Observable; - abstract upsert: (collection: CollectionData, userId: UserId) => Promise; - abstract replace: (collections: { [id: string]: CollectionData }, userId: UserId) => Promise; + abstract encryptedCollections$(userId: UserId): Observable; + abstract decryptedCollections$(userId: UserId): Observable; + abstract upsert(collection: CollectionData, userId: UserId): Promise; + abstract replace(collections: { [id: string]: CollectionData }, userId: UserId): Promise; /** * @deprecated This method will soon be made private, use `decryptedCollections$` instead. */ - abstract decryptMany$: ( + abstract decryptMany$( collections: Collection[], orgKeys: Record, - ) => Observable; - abstract delete: (ids: CollectionId[], userId: UserId) => Promise; - abstract encrypt: (model: CollectionView, userId: UserId) => Promise; + ): Observable; + abstract delete(ids: CollectionId[], userId: UserId): Promise; + abstract encrypt(model: CollectionView, userId: UserId): Promise; /** * Transforms the input CollectionViews into TreeNodes */ - abstract getAllNested: (collections: CollectionView[]) => TreeNode[]; + abstract getAllNested(collections: CollectionView[]): TreeNode[]; /* * Transforms the input CollectionViews into TreeNodes and then returns the Treenode with the specified id */ - abstract getNested: (collections: CollectionView[], id: string) => TreeNode; + abstract getNested(collections: CollectionView[], id: string): TreeNode; }