Skip to content

Conversation

@AaronDDM
Copy link
Collaborator

What did you do?

Add support for three new Nylas API message features:

  1. New MessageFields enum values:

    • INCLUDE_TRACKING_OPTIONS: Returns message tracking options data
    • RAW_MIME: Returns Base64url-encoded raw message content
  2. New Message model properties:

    • trackingOptions: TrackingOptions object with opens, thread_replies, links, and label fields
    • rawMime: String field containing Base64url-encoded message data
  3. Enhanced Messages API methods:

    • Messages.find() now accepts FindMessageQueryParams to specify fields
    • Added FindMessageQueryParams class with Builder pattern for consistency

Changes include:

  • Comprehensive test coverage for all new functionality
  • Java and Kotlin examples demonstrating the new features
  • Updated documentation and changelog
  • Backwards compatibility maintained

Resolves support for include_tracking_options and raw_mime fields in Messages API.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

… new MessageFields enum values

Add support for three new Nylas API message features:

1. New MessageFields enum values:
   - INCLUDE_TRACKING_OPTIONS: Returns message tracking options data
   - RAW_MIME: Returns Base64url-encoded raw message content

2. New Message model properties:
   - trackingOptions: TrackingOptions object with opens, thread_replies, links, and label fields
   - rawMime: String field containing Base64url-encoded message data

3. Enhanced Messages API methods:
   - Messages.find() now accepts FindMessageQueryParams to specify fields
   - Added FindMessageQueryParams class with Builder pattern for consistency

Changes include:
- Comprehensive test coverage for all new functionality
- Java and Kotlin examples demonstrating the new features
- Updated documentation and changelog
- Backwards compatibility maintained

Resolves support for include_tracking_options and raw_mime fields in Messages API.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.57%. Comparing base (bcdafdf) to head (864115f).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #279   +/-   ##
=========================================
  Coverage     80.57%   80.57%           
  Complexity      333      333           
=========================================
  Files            36       36           
  Lines          1014     1014           
  Branches         88       88           
=========================================
  Hits            817      817           
  Misses          138      138           
  Partials         59       59           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AaronDDM AaronDDM requested a review from quzhi1 May 29, 2025 15:42
@AaronDDM AaronDDM merged commit 7406677 into main May 29, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants