From 8150f8e81e877d9cc8d836d77040924614ec8ff2 Mon Sep 17 00:00:00 2001 From: Mostafa Rashed <17770919+mrashed-dev@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:34:40 -0400 Subject: [PATCH 1/2] add schedule-specific fields to message --- nylas/models/messages.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nylas/models/messages.py b/nylas/models/messages.py index 2ab36c6..12da517 100644 --- a/nylas/models/messages.py +++ b/nylas/models/messages.py @@ -53,10 +53,14 @@ class Message: folders: The folders that the message is in. headers: The headers of the message. created_at: Unix timestamp of when the message was created. + schedule_id: The ID of the scheduled email message. Nylas returns the schedule_id if send_at is set. + send_at: Unix timestamp of when the message will be sent, if scheduled. """ grant_id: str - from_: Optional[List[EmailName]] = field(default=None,metadata=config(field_name="from")) + from_: Optional[List[EmailName]] = field( + default=None, metadata=config(field_name="from") + ) object: str = "message" id: Optional[str] = None body: Optional[str] = None @@ -74,6 +78,8 @@ class Message: starred: Optional[bool] = None created_at: Optional[int] = None date: Optional[int] = None + schedule_id: Optional[str] = None + send_at: Optional[int] = None # Need to use Functional typed dicts because "from" and "in" are Python From 4f30a8efb44aff5797e8dada2bbe0e7e7244e3a3 Mon Sep 17 00:00:00 2001 From: Mostafa Rashed <17770919+mrashed-dev@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:36:13 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c51a4c..41aa8d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ nylas-python Changelog Unreleased ---------------- * Fix IMAP identifiers not encoding correctly +* Add missing schedule-specific fields to Message model v6.3.1 ----------------