import { CollectionData } from "../data/collectionData" ; import { CollectionView } from "../view/collectionView" ; import Domain from "./domainBase" ; import { EncString } from "./encString" ; export class Collection extends Domain { id : string ; organizationId : string ; name : EncString ; externalId : string ; readOnly : boolean ; hidePasswords : boolean ; constructor ( obj ? , alreadyEncrypted = false ) { super ( ) ; if ( obj == null ) { return ; } this . buildDomainModel ( this , obj , { id : null , organizationId : null , name : null , externalId : null , readOnly : null , hidePasswords : null , } , alreadyEncrypted , [ "id" , "organizationId" , "externalId" , "readOnly" , "hidePasswords" ] ) ; } decrypt ( ) { return this . decryptObj ( new CollectionView ( this ) , { name : null , } , this . organizationId ) ; } }