Skip to content

Commit

Permalink
v2.0.0 beta 3 Release (#180)
Browse files Browse the repository at this point in the history
# Changelog

### Added
* Added support for event send RSVP (#175)

### Changed
* Fixed int type being serialized to double sometimes (#177)
* Fixed `Auth.exchangeCodeForToken` always returning 401 (#178)
* Fixed error when sending message or updating draft (#179)

# License
<!-- Your PR comment must contain the following line for us to merge the
PR. -->
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.
  • Loading branch information
mrashed-dev authored Dec 18, 2023
1 parent cbf26c7 commit 58ceaaf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Nylas Java SDK Changelog

## [2.0.0-beta.3] - TBD
## [2.0.0-beta.3] - Released 2023-12-18

### Added
* Added support for event send RSVP

### Changed
* Fixed int type being serialized to double sometimes
* Fixed `Auth.exchangeCodeForToken` always returning 401
* Fixed error when sending message or updating draft

## [2.0.0-beta.2] - Released 2023-11-21

Expand Down Expand Up @@ -417,7 +423,8 @@ This second release aims toward API stability so that we can get to v1.0.0.

Initial preview release

[Unreleased]: https://github.com/nylas/nylas-java/compare/v2.0.0-beta.2...HEAD
[Unreleased]: https://github.com/nylas/nylas-java/compare/v2.0.0-beta.3...HEAD
[2.0.0-beta.3]: https://github.com/nylas/nylas-java/releases/tag/v2.0.0-beta.3
[2.0.0-beta.2]: https://github.com/nylas/nylas-java/releases/tag/v2.0.0-beta.2
[2.0.0-beta.1]: https://github.com/nylas/nylas-java/releases/tag/v2.0.0-beta.1
[1.21.0]: https://github.com/nylas/nylas-java/releases/tag/v1.21.0
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=com.nylas.sdk
version=2.0.0-beta.2
version=2.0.0-beta.3

# Override and set these in ~/.gradle/gradle.properties
ossrhUser=
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/nylas/models/SendRsvpQueryParams.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data class SendRsvpQueryParams(
* The RSVP status for the event. Must be yes, no, or maybe
*/
@Json(name = "status")
val status: RsvpStatus
val status: RsvpStatus,
) : IQueryParams {

/**
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/com/nylas/resources/Events.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ class Events(client: NylasClient) : Resource<Event>(client, Event::class.java) {
* @return The send-rsvp response
*/
@Throws(NylasApiError::class, NylasSdkTimeoutError::class)
fun sendRsvp(identifier: String, requestBody: SendRsvpRequest, queryParams: SendRsvpQueryParams): DeleteResponse{
fun sendRsvp(identifier: String, eventId: String, requestBody: SendRsvpRequest, queryParams: SendRsvpQueryParams): DeleteResponse {
val path = String.format("v3/grants/%s/events/%s/send-rsvp", identifier, eventId)
val adapter = JsonHelper.moshi().adapter(SendRsvpRequest::class.java)
val serializedRequestBody = adapter.toJson(requestBody)
return createResource(path, serializedRequestBody, queryParams)
}

return client.executePost(path, DeleteResponse::class.java, serializedRequestBody, queryParams)
}
}

0 comments on commit 58ceaaf

Please sign in to comment.