@unboundcx/sdk 4.13.106 → 4.13.107
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 +1 -1
- package/services/workflows.js +19 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unboundcx/sdk",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.107",
|
|
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",
|
package/services/workflows.js
CHANGED
|
@@ -96,6 +96,24 @@ export class WorkflowsService {
|
|
|
96
96
|
);
|
|
97
97
|
return result;
|
|
98
98
|
}
|
|
99
|
+
|
|
100
|
+
// P6 §6 — variable catalogue (inputs/system/context/module outputs) for
|
|
101
|
+
// the designer's `{{` autocomplete + variables panel.
|
|
102
|
+
async variables(versionId) {
|
|
103
|
+
this.sdk.validateParams(
|
|
104
|
+
{ versionId },
|
|
105
|
+
{
|
|
106
|
+
versionId: { type: 'string', required: true },
|
|
107
|
+
},
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
const result = await internalRequest(
|
|
111
|
+
this.sdk,
|
|
112
|
+
`/workflows/${versionId}/variables`,
|
|
113
|
+
'GET',
|
|
114
|
+
);
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
99
117
|
}
|
|
100
118
|
|
|
101
119
|
export class WorkflowItemsService {
|
|
@@ -486,7 +504,7 @@ export class WorkflowSessionsService {
|
|
|
486
504
|
query: { startDate, endDate },
|
|
487
505
|
};
|
|
488
506
|
|
|
489
|
-
const result = await internalRequest(this.sdk,
|
|
507
|
+
const result = await internalRequest(this.sdk,
|
|
490
508
|
`/workflows/${workflowVersionId}/analytics`,
|
|
491
509
|
'GET',
|
|
492
510
|
params,
|