Files
workavia-mail-front/lib/features/thread/domain/constants/thread_constants.dart
T
DatDang b3ce1f076c TF-3881 Thread Detail Bottom sheet close when action
TF-3881 Thread Detail Unsubscribe context menu

TF-3881 Thread Detail Update date time format

TF-3881 Thread Detail Update sender receiver spacing

TF-3881 Thread Detail Add messageId and references to presentation email

TF-3881 Thread Detail Filter created email on refresh

TF-3881 Thread Detail Fix CI

TF-3881 Thread Detail Fix previous action throws out of index

TF-3881 Thread Detail Update sender receiver spacing

TF-3881 Thread Detail Adjust email actions when expanded

TF-3881 Thread Detail Adjust days ago received time

TF-3881 Thread Detail Fix debouncer when update setting

TF-3881 Thread Detail Adjust days ago received time

TF-3881 Thread Detail Adjust email actions when expanded

TF-3881 Thread Detail Hide next previous if not in range

TF-3881 Thread Detail Arrange more action according to text direction

TF-3881 Thread Detail Hide next previous if not in range

TF-3881 Thread Detail Fix move email on tablet
2025-07-21 05:34:53 +07:00

101 lines
3.0 KiB
Dart

import 'package:jmap_dart_client/jmap/core/properties/properties.dart';
import 'package:jmap_dart_client/jmap/core/unsigned_int.dart';
import 'package:jmap_dart_client/jmap/mail/email/individual_header_identifier.dart';
import 'package:model/email/email_property.dart';
class ThreadConstants {
static const maxCountEmails = 20;
static final defaultLimit = UnsignedInt(maxCountEmails);
static final propertiesDefault = Properties({
EmailProperty.id,
EmailProperty.blobId,
EmailProperty.subject,
EmailProperty.from,
EmailProperty.to,
EmailProperty.cc,
EmailProperty.bcc,
EmailProperty.keywords,
EmailProperty.size,
EmailProperty.receivedAt,
EmailProperty.sentAt,
EmailProperty.preview,
EmailProperty.hasAttachment,
EmailProperty.replyTo,
EmailProperty.mailboxIds,
EmailProperty.threadId,
IndividualHeaderIdentifier.xPriorityHeader.value,
IndividualHeaderIdentifier.importanceHeader.value,
IndividualHeaderIdentifier.priorityHeader.value,
IndividualHeaderIdentifier.listUnsubscribeHeader.value,
});
static final propertiesUpdatedDefault = propertiesDefault;
static final propertiesGetEmailContent = Properties({
EmailProperty.bodyValues,
EmailProperty.htmlBody,
EmailProperty.attachments,
EmailProperty.headers,
EmailProperty.keywords,
EmailProperty.mailboxIds,
EmailProperty.messageId,
EmailProperty.references,
IndividualHeaderIdentifier.sMimeStatusHeader.value,
});
static final propertiesGetDetailedEmail = Properties({
EmailProperty.id,
EmailProperty.blobId,
EmailProperty.subject,
EmailProperty.from,
EmailProperty.to,
EmailProperty.cc,
EmailProperty.bcc,
EmailProperty.keywords,
EmailProperty.size,
EmailProperty.receivedAt,
EmailProperty.sentAt,
EmailProperty.preview,
EmailProperty.hasAttachment,
EmailProperty.replyTo,
EmailProperty.mailboxIds,
EmailProperty.threadId,
EmailProperty.bodyValues,
EmailProperty.htmlBody,
EmailProperty.attachments,
EmailProperty.headers,
IndividualHeaderIdentifier.sMimeStatusHeader.value,
IndividualHeaderIdentifier.identityHeader.value,
});
static final propertiesCalendarEvent = Properties({
...propertiesDefault.value,
IndividualHeaderIdentifier.headerCalendarEvent.value,
});
static const int defaultMaxHeightEmailItemOnBrowser = 40;
static const int defaultMaxHeightBrowser = 1200;
static final propertiesParseEmailByBlobId = Properties({
EmailProperty.id,
EmailProperty.blobId,
EmailProperty.subject,
EmailProperty.from,
EmailProperty.to,
EmailProperty.cc,
EmailProperty.bcc,
EmailProperty.keywords,
EmailProperty.size,
EmailProperty.receivedAt,
EmailProperty.sentAt,
EmailProperty.preview,
EmailProperty.hasAttachment,
EmailProperty.replyTo,
EmailProperty.mailboxIds,
EmailProperty.bodyValues,
EmailProperty.htmlBody,
EmailProperty.attachments,
EmailProperty.headers,
EmailProperty.messageId,
EmailProperty.references,
});
}