@unboundcx/sdk 4.13.170 → 4.13.171
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.171",
|
|
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",
|
|
@@ -97,4 +97,27 @@ export class JourneyDraftService {
|
|
|
97
97
|
'GET',
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Hide a non-current workflow version from the journey step list and
|
|
103
|
+
* from the step safety check. The current version is refused.
|
|
104
|
+
*
|
|
105
|
+
* @param {string} journeyId
|
|
106
|
+
* @param {string} versionId
|
|
107
|
+
* @returns {Promise<Object>} { id, name, archived }
|
|
108
|
+
*/
|
|
109
|
+
async archiveVersion(journeyId, versionId) {
|
|
110
|
+
this.sdk.validateParams(
|
|
111
|
+
{ journeyId, versionId },
|
|
112
|
+
{
|
|
113
|
+
journeyId: { type: 'string', required: true },
|
|
114
|
+
versionId: { type: 'string', required: true },
|
|
115
|
+
},
|
|
116
|
+
);
|
|
117
|
+
return await internalRequest(
|
|
118
|
+
this.sdk,
|
|
119
|
+
`/journeys/${journeyId}/versions/${versionId}/archive`,
|
|
120
|
+
'POST',
|
|
121
|
+
);
|
|
122
|
+
}
|
|
100
123
|
}
|