From 8ec3dec8344ca81334cf2402151168be680edb29 Mon Sep 17 00:00:00 2001 From: DatDang Date: Mon, 22 Apr 2024 10:04:18 +0700 Subject: [PATCH] TF-2819 calendar event maybe abstract data source & repo --- contact/pubspec.lock | 2 +- email_recovery/pubspec.lock | 2 +- fcm/pubspec.lock | 2 +- forward/pubspec.lock | 2 +- .../email/data/datasource/calendar_event_datasource.dart | 3 +++ .../email/domain/repository/calendar_event_repository.dart | 3 +++ model/pubspec.lock | 2 +- pubspec.lock | 2 +- rule_filter/pubspec.lock | 2 +- 9 files changed, 13 insertions(+), 7 deletions(-) diff --git a/contact/pubspec.lock b/contact/pubspec.lock index 1e5943be7..48e24776a 100644 --- a/contact/pubspec.lock +++ b/contact/pubspec.lock @@ -532,7 +532,7 @@ packages: description: path: "." ref: master - resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279" + resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da" url: "https://github.com/linagora/jmap-dart-client.git" source: git version: "0.0.1" diff --git a/email_recovery/pubspec.lock b/email_recovery/pubspec.lock index 9d2f730b5..b953a9f19 100644 --- a/email_recovery/pubspec.lock +++ b/email_recovery/pubspec.lock @@ -296,7 +296,7 @@ packages: description: path: "." ref: master - resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279" + resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da" url: "https://github.com/linagora/jmap-dart-client.git" source: git version: "0.0.1" diff --git a/fcm/pubspec.lock b/fcm/pubspec.lock index e9e085159..a0b40a810 100644 --- a/fcm/pubspec.lock +++ b/fcm/pubspec.lock @@ -296,7 +296,7 @@ packages: description: path: "." ref: master - resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279" + resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da" url: "https://github.com/linagora/jmap-dart-client.git" source: git version: "0.0.1" diff --git a/forward/pubspec.lock b/forward/pubspec.lock index e9e085159..a0b40a810 100644 --- a/forward/pubspec.lock +++ b/forward/pubspec.lock @@ -296,7 +296,7 @@ packages: description: path: "." ref: master - resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279" + resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da" url: "https://github.com/linagora/jmap-dart-client.git" source: git version: "0.0.1" diff --git a/lib/features/email/data/datasource/calendar_event_datasource.dart b/lib/features/email/data/datasource/calendar_event_datasource.dart index 8d22443b1..12d488a1d 100644 --- a/lib/features/email/data/datasource/calendar_event_datasource.dart +++ b/lib/features/email/data/datasource/calendar_event_datasource.dart @@ -2,6 +2,7 @@ import 'package:jmap_dart_client/jmap/account_id.dart'; import 'package:jmap_dart_client/jmap/core/id.dart'; import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_accept_response.dart'; +import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_maybe_response.dart'; import 'package:tmail_ui_user/features/email/domain/model/event_action.dart'; import 'package:tmail_ui_user/features/email/presentation/model/blob_calendar_event.dart'; @@ -11,4 +12,6 @@ abstract class CalendarEventDataSource { Future> getListEventAction(String emailContents); Future acceptEventInvitation(AccountId accountId, Set blobIds); + + Future maybeEventInvitation(AccountId accountId, Set blobIds); } \ No newline at end of file diff --git a/lib/features/email/domain/repository/calendar_event_repository.dart b/lib/features/email/domain/repository/calendar_event_repository.dart index 95847476c..edc28f155 100644 --- a/lib/features/email/domain/repository/calendar_event_repository.dart +++ b/lib/features/email/domain/repository/calendar_event_repository.dart @@ -3,9 +3,12 @@ import 'package:jmap_dart_client/jmap/account_id.dart'; import 'package:jmap_dart_client/jmap/core/id.dart'; import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_accept_response.dart'; import 'package:tmail_ui_user/features/email/presentation/model/blob_calendar_event.dart'; +import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_maybe_response.dart'; abstract class CalendarEventRepository { Future> parse(AccountId accountId, Set blobIds); Future acceptEventInvitation(AccountId accountId, Set blobIds); + + Future maybeEventInvitation(AccountId accountId, Set blobIds); } \ No newline at end of file diff --git a/model/pubspec.lock b/model/pubspec.lock index 53a05bfe1..541c70e3a 100644 --- a/model/pubspec.lock +++ b/model/pubspec.lock @@ -524,7 +524,7 @@ packages: description: path: "." ref: master - resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279" + resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da" url: "https://github.com/linagora/jmap-dart-client.git" source: git version: "0.0.1" diff --git a/pubspec.lock b/pubspec.lock index d750b9eab..a7c06be68 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1116,7 +1116,7 @@ packages: description: path: "." ref: master - resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279" + resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da" url: "https://github.com/linagora/jmap-dart-client.git" source: git version: "0.0.1" diff --git a/rule_filter/pubspec.lock b/rule_filter/pubspec.lock index e9e085159..a0b40a810 100644 --- a/rule_filter/pubspec.lock +++ b/rule_filter/pubspec.lock @@ -296,7 +296,7 @@ packages: description: path: "." ref: master - resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279" + resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da" url: "https://github.com/linagora/jmap-dart-client.git" source: git version: "0.0.1"