@stackfactor/client-api 1.1.66 → 1.1.68

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.
@@ -80,6 +80,7 @@ const discardLearningContentChanges = (id, token) => {
80
80
 
81
81
  /**
82
82
  * Generate the learning activity content
83
+ * @param {String} learningObjectives
83
84
  * @param {String} skillId
84
85
  * @param {String} microSkillId
85
86
  * @param {Object} learningActivity
@@ -88,6 +89,7 @@ const discardLearningContentChanges = (id, token) => {
88
89
  * @param {String} token
89
90
  */
90
91
  const generateLearningActivityContent = (
92
+ learningObjectives,
91
93
  skillId,
92
94
  microSkillId,
93
95
  learningActivity,
@@ -97,6 +99,7 @@ const generateLearningActivityContent = (
97
99
  ) => {
98
100
  return new Promise(function (resolve, reject) {
99
101
  const requestData = {
102
+ learningObjectives: learningObjectives,
100
103
  learningActivity: learningActivity,
101
104
  microSkillId: microSkillId,
102
105
  sections: sections,
@@ -299,6 +302,7 @@ const setLearningContentPartialContentInformation = (id, data, token) => {
299
302
  * Set the content for a specific learning activity
300
303
  * @param {String} id
301
304
  * @param {String} learningcontentid
305
+ * @param {String} microSkillId
302
306
  * @param {Object} data
303
307
  * @param {String} token
304
308
  * @returns {Promise<String>} OK word if the operation was succesful
@@ -306,15 +310,19 @@ const setLearningContentPartialContentInformation = (id, data, token) => {
306
310
  const setLearningContentLearningContentInformation = (
307
311
  id,
308
312
  learningcontentid,
313
+ microSkillId,
309
314
  data,
310
315
  token
311
316
  ) => {
312
317
  return new Promise(function (resolve, reject) {
313
318
  const requestData = {
314
319
  data: data,
320
+ id: id,
321
+ learningcontentid: learningcontentid,
322
+ microSkillId: microSkillId,
315
323
  };
316
324
  let confirmationRequest = client.post(
317
- `api/v1/learningcontent/updatelearningcontent/${id}/${learningcontentid}`,
325
+ `api/v1/learningcontent/updatelearningcontent/`,
318
326
  requestData,
319
327
  {
320
328
  headers: { authorization: token },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.66",
3
+ "version": "1.1.68",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {