@stackfactor/client-api 1.1.127 → 1.1.128

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.
@@ -211,6 +211,32 @@ const getLearningContentList = (filter, version, includeDeleted, token) => {
211
211
  });
212
212
  };
213
213
 
214
+ /**
215
+ * Migrate learning content storage
216
+ * @param {String} id The id of the content to be migrated
217
+ * @param {String} token Authorization token
218
+ * @returns {Promise<Object>} The response from the server
219
+ */
220
+ const migrateLearningContentStorageType = (id, token) => {
221
+ return new Promise(function (resolve, reject) {
222
+ let data = {};
223
+ let confirmationRequest = client.post(
224
+ `api/v1/learningcontent/migratestorage/${id}`,
225
+ data,
226
+ {
227
+ headers: { authorization: token },
228
+ }
229
+ );
230
+ confirmationRequest
231
+ .then((response) => {
232
+ resolve(response.data);
233
+ })
234
+ .catch((error) => {
235
+ reject(error);
236
+ });
237
+ });
238
+ };
239
+
214
240
  /**
215
241
  * Publish learning content
216
242
  * @param {String} id The id of the content to be published
@@ -441,6 +467,7 @@ export default {
441
467
  generateLearningActivityContent,
442
468
  generateMicroSkillTestKnowledge,
443
469
  getLearningContentList,
470
+ migrateLearningContentStorageType,
444
471
  publishLearningContent,
445
472
  setLearningContentPartialContentInformation,
446
473
  setLearningContentLearningContentInformation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.127",
3
+ "version": "1.1.128",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {