nylas 7.6.1 → 7.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,7 +115,6 @@ class APIClient {
115
115
  requestOptions.body = JSON.stringify((0, utils_js_1.objKeysToSnakeCase)(optionParams.body, ['metadata']) // metadata should remain as is
116
116
  );
117
117
  requestOptions.headers['Content-Type'] = 'application/json';
118
- requestOptions.headers['Accept-Encoding'] = 'gzip';
119
118
  }
120
119
  if (optionParams.form) {
121
120
  requestOptions.body = optionParams.form;
@@ -66,7 +66,7 @@ class Webhooks extends resource_js_1.Resource {
66
66
  */
67
67
  rotateSecret({ webhookId, overrides, }) {
68
68
  return super._create({
69
- path: `/v3/webhooks/${webhookId}/rotate-secret`,
69
+ path: `/v3/webhooks/rotate-secret/${webhookId}`,
70
70
  requestBody: {},
71
71
  overrides,
72
72
  });
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
4
  // This file is generated by scripts/exportVersion.js
5
- exports.SDK_VERSION = '7.6.1';
5
+ exports.SDK_VERSION = '7.6.2';
@@ -113,7 +113,6 @@ export default class APIClient {
113
113
  requestOptions.body = JSON.stringify(objKeysToSnakeCase(optionParams.body, ['metadata']) // metadata should remain as is
114
114
  );
115
115
  requestOptions.headers['Content-Type'] = 'application/json';
116
- requestOptions.headers['Accept-Encoding'] = 'gzip';
117
116
  }
118
117
  if (optionParams.form) {
119
118
  requestOptions.body = optionParams.form;
@@ -63,7 +63,7 @@ export class Webhooks extends Resource {
63
63
  */
64
64
  rotateSecret({ webhookId, overrides, }) {
65
65
  return super._create({
66
- path: `/v3/webhooks/${webhookId}/rotate-secret`,
66
+ path: `/v3/webhooks/rotate-secret/${webhookId}`,
67
67
  requestBody: {},
68
68
  overrides,
69
69
  });
@@ -1,2 +1,2 @@
1
1
  // This file is generated by scripts/exportVersion.js
2
- export const SDK_VERSION = '7.6.1';
2
+ export const SDK_VERSION = '7.6.2';
@@ -111,6 +111,10 @@ export interface Event {
111
111
  * Unix timestamp when the event was last updated.
112
112
  */
113
113
  updatedAt?: number;
114
+ /**
115
+ * Master event id if recurring events.
116
+ */
117
+ masterEventId?: string;
114
118
  }
115
119
  /**
116
120
  * Interface representing a request to create an event.
@@ -27,6 +27,10 @@ export interface Grant {
27
27
  * Email address associated with the grant.
28
28
  */
29
29
  email?: string;
30
+ /**
31
+ * Name associated with the grant.
32
+ */
33
+ name?: string;
30
34
  /**
31
35
  * End user's client user agent.
32
36
  */
@@ -1,4 +1,18 @@
1
1
  export interface ListQueryParams {
2
+ /**
3
+ * The maximum number of objects to return.
4
+ * This field defaults to 50. The maximum allowed value is 200.
5
+ */
2
6
  limit?: number;
7
+ /**
8
+ * An identifier that specifies which page of data to return.
9
+ * This value should be taken from the [ListResponse.nextCursor] response field.
10
+ */
3
11
  pageToken?: string;
12
+ /**
13
+ * Specify fields that you want Nylas to return
14
+ * as a comma-separated list (for example, select=id,updated_at).
15
+ * This allows you to receive only the portion of object data that you're interested in.
16
+ */
17
+ select?: string;
4
18
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "7.6.1";
1
+ export declare const SDK_VERSION = "7.6.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nylas",
3
- "version": "7.6.1",
3
+ "version": "7.6.2",
4
4
  "description": "A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.",
5
5
  "main": "lib/cjs/nylas.js",
6
6
  "types": "lib/types/nylas.d.ts",