nylas 7.6.0 → 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.
- package/lib/cjs/resources/webhooks.js +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/resources/webhooks.js +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/models/events.d.ts +10 -2
- package/lib/types/models/grants.d.ts +4 -0
- package/lib/types/models/listQueryParams.d.ts +14 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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}
|
|
69
|
+
path: `/v3/webhooks/rotate-secret/${webhookId}`,
|
|
70
70
|
requestBody: {},
|
|
71
71
|
overrides,
|
|
72
72
|
});
|
package/lib/cjs/version.js
CHANGED
|
@@ -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}
|
|
66
|
+
path: `/v3/webhooks/rotate-secret/${webhookId}`,
|
|
67
67
|
requestBody: {},
|
|
68
68
|
overrides,
|
|
69
69
|
});
|
package/lib/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is generated by scripts/exportVersion.js
|
|
2
|
-
export const SDK_VERSION = '7.6.
|
|
2
|
+
export const SDK_VERSION = '7.6.2';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ListQueryParams } from './listQueryParams.js';
|
|
2
1
|
import { Subset } from '../utils.js';
|
|
3
|
-
import { NylasBaseResponse } from './response.js';
|
|
4
2
|
import { NylasApiErrorResponseData } from './error.js';
|
|
3
|
+
import { ListQueryParams } from './listQueryParams.js';
|
|
4
|
+
import { NylasBaseResponse } from './response.js';
|
|
5
5
|
/**
|
|
6
6
|
* Interface representing a Nylas Event object.
|
|
7
7
|
*/
|
|
@@ -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.
|
|
@@ -278,6 +282,10 @@ export interface ListEventQueryParams extends ListQueryParams {
|
|
|
278
282
|
* Not supported for virtual calendars.
|
|
279
283
|
*/
|
|
280
284
|
attendees?: string[];
|
|
285
|
+
/**
|
|
286
|
+
* Master event id if recurring events.
|
|
287
|
+
*/
|
|
288
|
+
masterEventId?: string;
|
|
281
289
|
}
|
|
282
290
|
/**
|
|
283
291
|
* Interface representing of the query parameters for creating an event.
|
|
@@ -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
|
}
|
package/lib/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "7.6.
|
|
1
|
+
export declare const SDK_VERSION = "7.6.2";
|