Repository navigation
TT-5543: JAVA SDK support for Events batch operations - #341
Merged
googsvg merged 2 commits intoNov 5, 2026
Merged
Conversation
googsvg
had a problem deploying
to
sdk-reference
November 4, 2026 16:10 — with
GitHub Actions
Failure
AaronDDM
approved these changes
Nov 4, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #341 +/- ##
============================================
+ Coverage 83.72% 83.93% +0.20%
- Complexity 486 489 +3
============================================
Files 44 44
Lines 1358 1363 +5
Branches 115 115
============================================
+ Hits 1137 1144 +7
+ Misses 149 148 -1
+ Partials 72 71 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
4 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements TT-5543 (parent TT-5542).
Summary
Events.batch()forPOST /v3/grants/{grant_id}/events/batch, which runs many event create/update/delete operations in one request (Google and Microsoft)BatchEventsRequestandBatchEventOperationwithcreate/update/deletefactories. The constructor is private, so an update or delete can't be built without aneventId, and a create or update can't be built without a bodyCreateEventRequest/UpdateEventRequestas operation bodies andEventas result data; no new event modelsBatchEventsQueryParams(calendar_id,notify_participants,grant_email,tentative_as_busy,select). This is a new type because no existing event query-param type hasgrant_emailBatchEventsResponse/BatchEventResult(status,data,error,retry_after,provider_event_created)NylasApiErroras usual. NoNylasClientchanges were needed, because it already treats every 2xx as successBatchEventsExample(loop over results, retry 429/503 afterretry_after, never retry items withprovider_event_created: true), plus README /.env.exampleentries and a changelog entryPurely additive: no existing signatures or behavior changed.
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.