From b04771f4718692429ad7e7293ff5461ad811b252 Mon Sep 17 00:00:00 2001 From: Mostafa Rashed <17770919+mrashed-dev@users.noreply.github.com> Date: Thu, 4 Jan 2024 17:08:26 -0500 Subject: [PATCH] v6.0.0 beta 3 Release (#450) * Update CHANGELOG.md * linting * bump ver * Update CHANGELOG.md --- CHANGELOG.md | 6 +++++- lib/nylas/resources/drafts.rb | 10 +++------- lib/nylas/resources/events.rb | 2 +- lib/nylas/version.rb | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9da0ca11..ef469be7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,15 @@ # Changelog -### 6.0.0-beta.3 / TBD +### 6.0.0-beta.3 / 2024-01-04 * **BREAKING CHANGE**: Moved grants API out of `Auth` to `NylasClient` * **BREAKING CHANGE**: Moved `Grants.create()` to `Auth.customAuthentication()` * Add support for contacts API +* Add support for send RSVP +* Add draft send support +* Add missing webhook triggers * Fixed issue when sending message without attachments * Fixed issue when building an OAuth2 URL +* Fixed free-busy endpoint path ### 6.0.0-beta.2 / 2023-11-21 * Added additional error classes diff --git a/lib/nylas/resources/drafts.rb b/lib/nylas/resources/drafts.rb index c43a2883..6bbebfa2 100644 --- a/lib/nylas/resources/drafts.rb +++ b/lib/nylas/resources/drafts.rb @@ -87,20 +87,16 @@ def destroy(identifier:, draft_id:) [true, request_id] end - + # Send an draft. # # @param identifier [String] Grant ID or email account from which to send the draft. # @param draft_id [String] The id of the draft to send. # @return [Array(Hash, String)] The sent message draft and the API Request ID. def send(identifier:, draft_id:) - - response = post( + post( path: "#{api_uri}/v3/grants/#{identifier}/drafts/#{draft_id}" ) - - response - end - + end end end diff --git a/lib/nylas/resources/events.rb b/lib/nylas/resources/events.rb index f76b9f18..ce617e3e 100644 --- a/lib/nylas/resources/events.rb +++ b/lib/nylas/resources/events.rb @@ -93,6 +93,6 @@ def send_rsvp(identifier:, event_id:, request_body:, query_params:) query_params: query_params, request_body: request_body ) - end + end end end diff --git a/lib/nylas/version.rb b/lib/nylas/version.rb index 4c8c5245..c257a99c 100644 --- a/lib/nylas/version.rb +++ b/lib/nylas/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Nylas - VERSION = "6.0.0.beta.2" + VERSION = "6.0.0.beta.3" end