Skip to content

Commit

Permalink
v6.0.0 beta 3 Release (#450)
Browse files Browse the repository at this point in the history
* Update CHANGELOG.md

* linting

* bump ver

* Update CHANGELOG.md
  • Loading branch information
mrashed-dev authored Jan 4, 2024
1 parent a3f8d4a commit b04771f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 3 additions & 7 deletions lib/nylas/resources/drafts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/nylas/resources/events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/nylas/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Nylas
VERSION = "6.0.0.beta.2"
VERSION = "6.0.0.beta.3"
end

0 comments on commit b04771f

Please sign in to comment.