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.
- package/lib/cjs/apiClient.js +0 -1
- package/lib/cjs/resources/webhooks.js +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/apiClient.js +0 -1
- package/lib/esm/resources/webhooks.js +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/models/events.d.ts +4 -0
- 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
package/lib/cjs/apiClient.js
CHANGED
|
@@ -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}
|
|
69
|
+
path: `/v3/webhooks/rotate-secret/${webhookId}`,
|
|
70
70
|
requestBody: {},
|
|
71
71
|
overrides,
|
|
72
72
|
});
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/apiClient.js
CHANGED
|
@@ -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}
|
|
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';
|
|
@@ -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.
|
|
@@ -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";
|