TF-2026 Implement SaveToDraft method

(cherry picked from commit cf03def2f5de115fb9feb64af6686c3957b8f1f2)
This commit is contained in:
dab246
2023-08-31 00:11:42 +07:00
committed by Dat Vu
parent 5f0b27e742
commit 8f7a1aeb10
11 changed files with 144 additions and 33 deletions
@@ -1,6 +1,3 @@
class CannotDeleteOldEmailException implements Exception {}
class NotFoundEmailException implements Exception {}
class NotFoundEmailContentException implements Exception {}
@@ -78,7 +78,7 @@ abstract class EmailRepository {
Future<bool> removeEmailDrafts(Session session, AccountId accountId, EmailId emailId);
Future<Email> updateEmailDrafts(Session session, AccountId accountId, Email newEmail);
Future<Email> updateEmailDrafts(Session session, AccountId accountId, Email newEmail, EmailId oldEmailId);
Future<List<EmailId>> deleteMultipleEmailsPermanently(Session session, AccountId accountId, List<EmailId> emailIds);