Skip to content

Commit

Permalink
Add missing fields (#600)
Browse files Browse the repository at this point in the history
* Add missing select field on query parameter and missing name field on grant model

* lint

---------

Co-authored-by: Subash Pradhan <[email protected]>
  • Loading branch information
SubashPradhan and Subash Pradhan authored Oct 31, 2024
1 parent a641a22 commit 1463246
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

### Unreleased
* Add missing `select` field on query params
* Add missing `name` field on grant model
* Fix for the webhook rotate secret calling the wrong endpoint

### 7.6.1 / 2024-10-30
Expand Down
4 changes: 4 additions & 0 deletions src/models/grants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ export interface Grant {
* Email address associated with the grant.
*/
email?: string;
/**
* Name associated with the grant.
*/
name?: string;
/**
* End user's client user agent.
*/
Expand Down
14 changes: 14 additions & 0 deletions src/models/listQueryParams.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
export interface ListQueryParams {
/**
* The maximum number of objects to return.
* This field defaults to 50. The maximum allowed value is 200.
*/
limit?: number;
/**
* An identifier that specifies which page of data to return.
* This value should be taken from the [ListResponse.nextCursor] response field.
*/
pageToken?: string;
/**
* Specify fields that you want Nylas to return
* as a comma-separated list (for example, select=id,updated_at).
* This allows you to receive only the portion of object data that you're interested in.
*/
select?: string;
}

0 comments on commit 1463246

Please sign in to comment.