mirror of
https://github.com/bitwarden/jslib
synced 2025-12-20 18:23:52 +00:00
Split jslib into multiple modules (#363)
* Split jslib into multiple modules
This commit is contained in:
17
common/src/models/request/collectionRequest.ts
Normal file
17
common/src/models/request/collectionRequest.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Collection } from '../domain/collection';
|
||||
|
||||
import { SelectionReadOnlyRequest } from './selectionReadOnlyRequest';
|
||||
|
||||
export class CollectionRequest {
|
||||
name: string;
|
||||
externalId: string;
|
||||
groups: SelectionReadOnlyRequest[] = [];
|
||||
|
||||
constructor(collection?: Collection) {
|
||||
if (collection == null) {
|
||||
return;
|
||||
}
|
||||
this.name = collection.name ? collection.name.encryptedString : null;
|
||||
this.externalId = collection.externalId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user