Commit 7406677
authored
feat(messages): add support for tracking_options, raw_mime fields and new MessageFields enum values (#279)
# 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
<!-- Your PR comment must contain the following line for us to merge the
PR. -->
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.1 parent bcdafdf commit 7406677
File tree
13 files changed
+920
-14
lines changed- examples
- src/main
- java/com/nylas/examples
- kotlin/com/nylas/examples
- src
- main/kotlin/com/nylas
- models
- resources
- test/kotlin/com/nylas
- models
- resources
13 files changed
+920
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
7 | 25 | | |
8 | 26 | | |
9 | 27 | | |
| |||
28 | 46 | | |
29 | 47 | | |
30 | 48 | | |
31 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
32 | 53 | | |
33 | 54 | | |
34 | 55 | | |
35 | 56 | | |
36 | 57 | | |
37 | 58 | | |
38 | 59 | | |
39 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
40 | 76 | | |
41 | 77 | | |
42 | 78 | | |
43 | 79 | | |
44 | | - | |
| 80 | + | |
45 | 81 | | |
46 | 82 | | |
47 | 83 | | |
| |||
53 | 89 | | |
54 | 90 | | |
55 | 91 | | |
56 | | - | |
| 92 | + | |
57 | 93 | | |
58 | 94 | | |
59 | 95 | | |
60 | 96 | | |
61 | | - | |
| 97 | + | |
62 | 98 | | |
63 | 99 | | |
64 | 100 | | |
| |||
67 | 103 | | |
68 | 104 | | |
69 | 105 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
73 | 112 | | |
74 | 113 | | |
75 | 114 | | |
| |||
83 | 122 | | |
84 | 123 | | |
85 | 124 | | |
86 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
87 | 128 | | |
88 | 129 | | |
89 | | - | |
| 130 | + | |
| 131 | + | |
90 | 132 | | |
91 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
92 | 150 | | |
93 | 151 | | |
94 | 152 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
0 commit comments