mirror of
https://github.com/bitwarden/cli
synced 2025-12-10 21:33:33 +00:00
Add deleted date to items (#465)
This commit is contained in:
@@ -13,6 +13,7 @@ export class CipherResponse extends CipherWithIds implements BaseResponse {
|
|||||||
object: string;
|
object: string;
|
||||||
attachments: AttachmentResponse[];
|
attachments: AttachmentResponse[];
|
||||||
revisionDate: Date;
|
revisionDate: Date;
|
||||||
|
deletedDate: Date;
|
||||||
passwordHistory: PasswordHistoryResponse[];
|
passwordHistory: PasswordHistoryResponse[];
|
||||||
|
|
||||||
constructor(o: CipherView) {
|
constructor(o: CipherView) {
|
||||||
@@ -23,6 +24,7 @@ export class CipherResponse extends CipherWithIds implements BaseResponse {
|
|||||||
this.attachments = o.attachments.map((a) => new AttachmentResponse(a));
|
this.attachments = o.attachments.map((a) => new AttachmentResponse(a));
|
||||||
}
|
}
|
||||||
this.revisionDate = o.revisionDate;
|
this.revisionDate = o.revisionDate;
|
||||||
|
this.deletedDate = o.deletedDate;
|
||||||
if (o.passwordHistory != null) {
|
if (o.passwordHistory != null) {
|
||||||
this.passwordHistory = o.passwordHistory.map((h) => new PasswordHistoryResponse(h));
|
this.passwordHistory = o.passwordHistory.map((h) => new PasswordHistoryResponse(h));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user