Skip to content

feat(events): add batch operations (TT-5544) - #770

Merged
AaronDDM merged 4 commits into
mainfrom
codex/tt-5544-events-batch
Nov 4, 2026
Merged

AaronDDM merged 4 commits into
mainfrom
codex/tt-5544-events-batch

Conversation

@AaronDDM

@AaronDDM AaronDDM commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Adds events.batch() for grant-scoped Google and Microsoft event create/update/delete operations. Typed operations reuse the existing event request models, and a dedicated response exposes ordered per-item results, including failures returned with HTTP 207. Nested event metadata keys are preserved during request and response conversion. Grant identifiers are validated before HTTP so blank, non-string, and literal or encoded URL dot segments cannot change the grant-scoped path.

Includes HTTP regression coverage for query/body serialization, successful and mixed/all-failed 207 responses, zero retry delays, normal 400 errors, and compile-time required fields. The standalone examples/calendars/event_batch.ts example shows one caller-controlled retry and excludes any item with providerEventCreated: true.

Implements TT-5544, part of TT-5542. Ruby counterpart: nylas/nylas-ruby#553.

Validation: the full Node.js 18/20/24/25 CI matrix passed, including the batch HTTP/type tests and invalid-identifier no-network regressions; build, CommonJS/ESM package import checks, ESLint, Prettier, and diff checks passed. Example TypeScript and formatting checks also passed. Optional live staging smoke test was not run.

@radenkovic @googsvg, please review. @radenkovic, as the Node task owner, please merge and release/deploy this SDK through the normal release process once approved and CI passes. @AaronDDM is assigned as the Ruby task owner and cross-SDK contact; GitHub does not allow requesting a review from the PR author.

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.

@qasim-nylas qasim-nylas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.75%. Comparing base (027fc49) to head (7d9cd1f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #770   +/-   ##
=======================================
  Coverage   98.75%   98.75%           
=======================================
  Files          43       43           
  Lines        1041     1045    +4     
  Branches       90       91    +1     
=======================================
+ Hits         1028     1032    +4     
  Misses         12       12           
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread examples/calendars/event_batch.ts Fixed

@qasim-nylas qasim-nylas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@AaronDDM
AaronDDM merged commit 401a458 into main Nov 4, 2026
10 checks passed

This branch was successfully deployed

1 active deployment
sdk-reference — 7d9cd1f4 Deployed Nov 4, 2026 by AaronDDM via docs #762
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.

3 participants