From 00acbce556c015fae9e6281ea7db2e704ec96c26 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Mon, 19 Jul 2021 07:33:19 +1000 Subject: [PATCH] Add models to update send.key with account key (#418) --- common/src/models/request/sendWithIdRequest.ts | 12 ++++++++++++ common/src/models/request/updateKeyRequest.ts | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 common/src/models/request/sendWithIdRequest.ts diff --git a/common/src/models/request/sendWithIdRequest.ts b/common/src/models/request/sendWithIdRequest.ts new file mode 100644 index 0000000000..277cfa482d --- /dev/null +++ b/common/src/models/request/sendWithIdRequest.ts @@ -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; + } +} diff --git a/common/src/models/request/updateKeyRequest.ts b/common/src/models/request/updateKeyRequest.ts index 0464e5ce53..c0521b9b5e 100644 --- a/common/src/models/request/updateKeyRequest.ts +++ b/common/src/models/request/updateKeyRequest.ts @@ -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;