mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-04 13:44:00 +01:00
Add models to update send.key with account key (#418)
This commit is contained in:
parent
58be5796b0
commit
00acbce556
12
common/src/models/request/sendWithIdRequest.ts
Normal file
12
common/src/models/request/sendWithIdRequest.ts
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
@ -1,9 +1,11 @@
|
|||||||
import { CipherWithIdRequest } from './cipherWithIdRequest';
|
import { CipherWithIdRequest } from './cipherWithIdRequest';
|
||||||
import { FolderWithIdRequest } from './folderWithIdRequest';
|
import { FolderWithIdRequest } from './folderWithIdRequest';
|
||||||
|
import { SendWithIdRequest } from './sendWithIdRequest';
|
||||||
|
|
||||||
export class UpdateKeyRequest {
|
export class UpdateKeyRequest {
|
||||||
ciphers: CipherWithIdRequest[] = [];
|
ciphers: CipherWithIdRequest[] = [];
|
||||||
folders: FolderWithIdRequest[] = [];
|
folders: FolderWithIdRequest[] = [];
|
||||||
|
sends: SendWithIdRequest[] = [];
|
||||||
masterPasswordHash: string;
|
masterPasswordHash: string;
|
||||||
privateKey: string;
|
privateKey: string;
|
||||||
key: string;
|
key: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user