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 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;
@@ -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.13.1';
5
+ exports.SDK_VERSION = '7.13.3';
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) => {
@@ -1,2 +1,2 @@
1
1
  // This file is generated by scripts/exportVersion.js
2
- export const SDK_VERSION = '7.13.1';
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: 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: string;
571
+ email?: string;
572
572
  /**
573
573
  * Participant's name.
574
574
  */
@@ -106,7 +106,7 @@ export interface ListGrantsQueryParams {
106
106
  /**
107
107
  * Sort entries by field name
108
108
  */
109
- sortBy?: 'createdAt' | 'updatedAt';
109
+ sortBy?: 'created_at' | 'updated_at';
110
110
  /**
111
111
  * Specify ascending or descending order.
112
112
  */
@@ -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.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "7.13.1";
1
+ export declare const SDK_VERSION = "7.13.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nylas",
3
- "version": "7.13.1",
3
+ "version": "7.13.3",
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",