Add models to update send.key with account key (#418)

This commit is contained in:
Thomas Rittson 2021-07-19 07:33:19 +10:00 committed by GitHub
parent 58be5796b0
commit 00acbce556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import { SendRequest } from './sendRequest';
import { Send } from '../domain/send';
export class SendWithIdRequest extends SendRequest {
id: string;
constructor(send: Send) {
super(send);
this.id = send.id;
}
}

View File

@ -1,9 +1,11 @@
import { CipherWithIdRequest } from './cipherWithIdRequest';
import { FolderWithIdRequest } from './folderWithIdRequest';
import { SendWithIdRequest } from './sendWithIdRequest';
export class UpdateKeyRequest {
ciphers: CipherWithIdRequest[] = [];
folders: FolderWithIdRequest[] = [];
sends: SendWithIdRequest[] = [];
masterPasswordHash: string;
privateKey: string;
key: string;