@stackfactor/client-api 1.1.67 → 1.1.69

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/exports.js CHANGED
@@ -32,6 +32,7 @@ import skill from "./lib/skill.js";
32
32
  import skillAssessment from "./lib/skillAssessments.js";
33
33
  import skillAssessmentTestingSession from "./lib/skillAssessmentTestingSession.js";
34
34
  import skillTemplate from "./lib/skillTemplate.js";
35
+ import talentTransfromation from "./lib/talentTransfromation.js";
35
36
  import team from "./lib/teams.js";
36
37
  import tenant from "./lib/tenants.js";
37
38
  import trainingPlan from "./lib/trainingPlans.js";
@@ -70,6 +71,7 @@ export {
70
71
  skillAssessment,
71
72
  skillAssessmentTestingSession,
72
73
  skillTemplate,
74
+ talentTransfromation,
73
75
  team,
74
76
  tenant,
75
77
  trainingPlan,
@@ -302,6 +302,7 @@ const setLearningContentPartialContentInformation = (id, data, token) => {
302
302
  * Set the content for a specific learning activity
303
303
  * @param {String} id
304
304
  * @param {String} learningcontentid
305
+ * @param {String} microSkillId
305
306
  * @param {Object} data
306
307
  * @param {String} token
307
308
  * @returns {Promise<String>} OK word if the operation was succesful
@@ -309,15 +310,19 @@ const setLearningContentPartialContentInformation = (id, data, token) => {
309
310
  const setLearningContentLearningContentInformation = (
310
311
  id,
311
312
  learningcontentid,
313
+ microSkillId,
312
314
  data,
313
315
  token
314
316
  ) => {
315
317
  return new Promise(function (resolve, reject) {
316
318
  const requestData = {
317
319
  data: data,
320
+ id: id,
321
+ learningcontentid: learningcontentid,
322
+ microSkillId: microSkillId,
318
323
  };
319
324
  let confirmationRequest = client.post(
320
- `api/v1/learningcontent/updatelearningcontent/${id}/${learningcontentid}`,
325
+ `api/v1/learningcontent/updatelearningcontent/`,
321
326
  requestData,
322
327
  {
323
328
  headers: { authorization: token },
@@ -0,0 +1,28 @@
1
+ import { client } from "./axiosClient.js";
2
+
3
+ /**
4
+ * Get talent transformation steps for the current user
5
+ * @param {String} userId
6
+ * @param {String} authToken The authentication token
7
+ */
8
+ const getTalentTransformationStepsForCurrentUser = (authToken) => {
9
+ return new Promise(function (resolve, reject) {
10
+ const request = client.get(
11
+ `api/v1/talenttransformation/getforcurrentuser`,
12
+ {
13
+ headers: { authorization: authToken },
14
+ }
15
+ );
16
+ request
17
+ .then((response) => {
18
+ resolve(response.data);
19
+ })
20
+ .catch((error) => {
21
+ reject(error);
22
+ });
23
+ });
24
+ };
25
+
26
+ export default {
27
+ getTalentTransformationStepsForCurrentUser,
28
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.67",
3
+ "version": "1.1.69",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {