Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Add models to update send.key with account key (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliykat committed Jul 18, 2021
1 parent 58be579 commit 00acbce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions common/src/models/request/sendWithIdRequest.ts
Original file line number Diff line number Diff line change
@@ -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;
}
}
2 changes: 2 additions & 0 deletions common/src/models/request/updateKeyRequest.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 00acbce

Please sign in to comment.