@stackfactor/client-api 1.1.103 → 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.
package/lib/constants.js CHANGED
@@ -91,6 +91,7 @@ const PERMISSIONS = {
91
91
  MANAGE_OWN_PROFILE_INFORMATION_AUTO_APP: "5fac210e7e6539d37a897c94",
92
92
  MANAGE_OWN_PROFILE_SKIP_ASSESSMENT: "650fadb23956a2154ac890ac",
93
93
  MANAGE_OWN_SKILL_SET_AUTO_APPROVE: "5fac21164351c6727a34cd4e",
94
+ MANAGE_SECURITY: "66ff566a911d938bc00618bf",
94
95
  MANAGE_SETTINGS: "5e1570e087d836dc77888a5f",
95
96
  MANAGE_TEAM_INFORMATION_AUTO_APPROVE: "5fac211e6c8f874bd7137b98",
96
97
  MANAGE_TEAMS: "5dd61314afc2455a89b1a37b",
@@ -116,6 +117,7 @@ const PERMISSION_DESCRIPTIONS = {
116
117
  "650fadb23956a2154ac890ac":
117
118
  "Skip assessment when updating own profile information",
118
119
  "5fac21164351c6727a34cd4e": "Auto approve own skill set updates",
120
+ "66ff566a911d938bc00618bf": "Manage security",
119
121
  "5e1570e087d836dc77888a5f": "Manage settings",
120
122
  "5fac211e6c8f874bd7137b98": "Auto approve own team information updates",
121
123
  "5dd61314afc2455a89b1a37b": "Manage teams",
@@ -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.103",
3
+ "version": "1.1.105",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {