nylas 7.13.1 → 7.13.3
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/utils.js +1 -0
- package/lib/cjs/version.js +1 -1
- package/lib/esm/utils.js +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/models/events.d.ts +2 -2
- package/lib/types/models/grants.d.ts +1 -1
- package/lib/types/utils.d.ts +6 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/utils.js
CHANGED
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.createFileRequestBuilder = createFileRequestBuilder;
|
|
37
|
+
exports.streamToBase64 = streamToBase64;
|
|
37
38
|
exports.attachmentStreamToFile = attachmentStreamToFile;
|
|
38
39
|
exports.encodeAttachmentContent = encodeAttachmentContent;
|
|
39
40
|
exports.encodeAttachmentStreams = encodeAttachmentStreams;
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/utils.js
CHANGED
|
@@ -20,7 +20,7 @@ export function createFileRequestBuilder(filePath) {
|
|
|
20
20
|
* @param stream The ReadableStream containing the binary data.
|
|
21
21
|
* @returns The stream base64 encoded to a string.
|
|
22
22
|
*/
|
|
23
|
-
function streamToBase64(stream) {
|
|
23
|
+
export function streamToBase64(stream) {
|
|
24
24
|
return new Promise((resolve, reject) => {
|
|
25
25
|
const chunks = [];
|
|
26
26
|
stream.on('data', (chunk) => {
|
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.13.
|
|
2
|
+
export const SDK_VERSION = '7.13.3';
|
|
@@ -62,7 +62,7 @@ export interface Event {
|
|
|
62
62
|
* - {@link Autocreate}
|
|
63
63
|
* - {@link Details}
|
|
64
64
|
*/
|
|
65
|
-
conferencing
|
|
65
|
+
conferencing?: Conferencing;
|
|
66
66
|
/**
|
|
67
67
|
* Visibility of the event, if the event is private or public.
|
|
68
68
|
*/
|
|
@@ -568,7 +568,7 @@ export interface Participant {
|
|
|
568
568
|
/**
|
|
569
569
|
* Participant's email address.
|
|
570
570
|
*/
|
|
571
|
-
email
|
|
571
|
+
email?: string;
|
|
572
572
|
/**
|
|
573
573
|
* Participant's name.
|
|
574
574
|
*/
|
package/lib/types/utils.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { CreateAttachmentRequest } from './models/attachments.js';
|
|
2
2
|
export declare function createFileRequestBuilder(filePath: string): CreateAttachmentRequest;
|
|
3
|
+
/**
|
|
4
|
+
* Converts a ReadableStream to a base64 encoded string.
|
|
5
|
+
* @param stream The ReadableStream containing the binary data.
|
|
6
|
+
* @returns The stream base64 encoded to a string.
|
|
7
|
+
*/
|
|
8
|
+
export declare function streamToBase64(stream: NodeJS.ReadableStream): Promise<string>;
|
|
3
9
|
/**
|
|
4
10
|
* Converts a ReadableStream to a File-like object that can be used with FormData.
|
|
5
11
|
* @param attachment The attachment containing the stream and metadata.
|
package/lib/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "7.13.
|
|
1
|
+
export declare const SDK_VERSION = "7.13.3";
|