@stackfactor/client-api 1.1.104 → 1.1.105

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.
@@ -25,6 +25,56 @@ const getTalentTransformationStepsForCurrentUser = (authToken) => {
25
25
  });
26
26
  };
27
27
 
28
+ /**
29
+ * Get the talent transformation summary for the whole organization
30
+ * @param {String} authToken
31
+ * @returns {Promise<Object>} The talent transformation summary
32
+ */
33
+ const getTalentTransformationSummary = (authToken) => {
34
+ return new Promise(function (resolve, reject) {
35
+ const request = client.get(
36
+ `api/v1/talenttransformation/summary`,
37
+ authToken
38
+ ? {
39
+ headers: { authorization: authToken },
40
+ }
41
+ : {}
42
+ );
43
+ request
44
+ .then((response) => {
45
+ resolve(response.data);
46
+ })
47
+ .catch((error) => {
48
+ reject(error);
49
+ });
50
+ });
51
+ };
52
+
53
+ /**
54
+ * Get the talent transformation summary for the whole organization
55
+ * @param {String} authToken
56
+ * @returns {Promise<Object>} The talent transformation summary
57
+ */
58
+ const getTalentTransformationSummaryForTeam = (authToken) => {
59
+ return new Promise(function (resolve, reject) {
60
+ const request = client.get(
61
+ `api/v1/talenttransformation/summaryforteam`,
62
+ authToken
63
+ ? {
64
+ headers: { authorization: authToken },
65
+ }
66
+ : {}
67
+ );
68
+ request
69
+ .then((response) => {
70
+ resolve(response.data);
71
+ })
72
+ .catch((error) => {
73
+ reject(error);
74
+ });
75
+ });
76
+ };
77
+
28
78
  /**
29
79
  * Set talent transformation step data
30
80
  * @param {String} id The id of the talent transformation step to be updated
@@ -64,5 +114,7 @@ const setTalentTransformationStepData = (
64
114
 
65
115
  export default {
66
116
  getTalentTransformationStepsForCurrentUser,
117
+ getTalentTransformationSummary,
118
+ getTalentTransformationSummaryForTeam,
67
119
  setTalentTransformationStepData,
68
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.104",
3
+ "version": "1.1.105",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {