1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-27 01:53:23 +00:00
Files
browser/libs/common/src/vault/models/request/cipher-bulk-update-collections.request.ts
Shane Melton bac0874dc0 [PM-2383] Bulk collection assignment (#8429)
* [PM-2383] Add bulkUpdateCollectionsWithServer method to CipherService

* [PM-2383] Introduce bulk-collection-assignment-dialog.component

* [PM-2383] Add bulk assign collections option to org vault
2024-03-22 13:16:29 -07:00

20 lines
578 B
TypeScript

import { CipherId, CollectionId, OrganizationId } from "../../../types/guid";
export class CipherBulkUpdateCollectionsRequest {
organizationId: OrganizationId;
cipherIds: CipherId[];
collectionIds: CollectionId[];
removeCollections: boolean;
constructor(
organizationId: OrganizationId,
cipherIds: CipherId[],
collectionIds: CollectionId[],
removeCollections: boolean = false,
) {
this.organizationId = organizationId;
this.cipherIds = cipherIds;
this.collectionIds = collectionIds;
this.removeCollections = removeCollections;
}
}