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