mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
[SM-288] Rename models to follow naming convention (#3795)
This commit is contained in:
16
libs/common/src/models/export/cipher-with-ids.export.ts
Normal file
16
libs/common/src/models/export/cipher-with-ids.export.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Cipher as CipherDomain } from "../domain/cipher";
|
||||
import { CipherView } from "../view/cipher.view";
|
||||
|
||||
import { CipherExport } from "./cipher.export";
|
||||
|
||||
export class CipherWithIdExport extends CipherExport {
|
||||
id: string;
|
||||
collectionIds: string[];
|
||||
|
||||
// Use build method instead of ctor so that we can control order of JSON stringify for pretty print
|
||||
build(o: CipherView | CipherDomain) {
|
||||
this.id = o.id;
|
||||
super.build(o);
|
||||
this.collectionIds = o.collectionIds;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user