@stackfactor/client-api 1.1.68 → 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 +2 -0
- package/lib/talentTransfromation.js +28 -0
- package/package.json +1 -1
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,
|
|
@@ -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
|
+
};
|