nylas 7.7.3 → 7.7.4

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.
@@ -19,8 +19,18 @@ class Messages extends resource_js_1.Resource {
19
19
  * @return A list of messages
20
20
  */
21
21
  list({ identifier, queryParams, overrides, }) {
22
+ const modifiedQueryParams = queryParams
23
+ ? { ...queryParams }
24
+ : undefined;
25
+ // Transform some query params that are arrays into comma-delimited strings
26
+ if (modifiedQueryParams && queryParams) {
27
+ if (Array.isArray(queryParams?.anyEmail)) {
28
+ delete modifiedQueryParams.anyEmail;
29
+ modifiedQueryParams['any_email'] = queryParams.anyEmail.join(',');
30
+ }
31
+ }
22
32
  return super._list({
23
- queryParams,
33
+ queryParams: modifiedQueryParams,
24
34
  overrides,
25
35
  path: `/v3/grants/${identifier}/messages`,
26
36
  });
@@ -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.7.3';
5
+ exports.SDK_VERSION = '7.7.4';
@@ -16,8 +16,18 @@ export class Messages extends Resource {
16
16
  * @return A list of messages
17
17
  */
18
18
  list({ identifier, queryParams, overrides, }) {
19
+ const modifiedQueryParams = queryParams
20
+ ? { ...queryParams }
21
+ : undefined;
22
+ // Transform some query params that are arrays into comma-delimited strings
23
+ if (modifiedQueryParams && queryParams) {
24
+ if (Array.isArray(queryParams?.anyEmail)) {
25
+ delete modifiedQueryParams.anyEmail;
26
+ modifiedQueryParams['any_email'] = queryParams.anyEmail.join(',');
27
+ }
28
+ }
19
29
  return super._list({
20
- queryParams,
30
+ queryParams: modifiedQueryParams,
21
31
  overrides,
22
32
  path: `/v3/grants/${identifier}/messages`,
23
33
  });
@@ -1,2 +1,2 @@
1
1
  // This file is generated by scripts/exportVersion.js
2
- export const SDK_VERSION = '7.7.3';
2
+ export const SDK_VERSION = '7.7.4';
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "7.7.3";
1
+ export declare const SDK_VERSION = "7.7.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nylas",
3
- "version": "7.7.3",
3
+ "version": "7.7.4",
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",