@unboundcx/sdk 4.13.31 → 4.13.32
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unboundcx/sdk",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.32",
|
|
4
4
|
"description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -96,9 +96,13 @@ export class MessageTemplatesCrudService {
|
|
|
96
96
|
*/
|
|
97
97
|
async list(options = {}) {
|
|
98
98
|
const { groupId } = options;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
99
|
+
// Omit unset groupId — URLSearchParams would send "undefined" and
|
|
100
|
+
// the API would 404 looking up that string as a group id.
|
|
101
|
+
const params = {};
|
|
102
|
+
if (groupId !== undefined && groupId !== null && groupId !== '') {
|
|
103
|
+
params.query = { groupId };
|
|
104
|
+
}
|
|
105
|
+
return internalRequest(this.sdk, '/messageTemplates/templates', 'GET', params);
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
/**
|