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
|
});
|
package/lib/cjs/version.js
CHANGED
|
@@ -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
|
});
|
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.7.
|
|
2
|
+
export const SDK_VERSION = '7.7.4';
|
package/lib/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "7.7.
|
|
1
|
+
export declare const SDK_VERSION = "7.7.4";
|