@stackfactor/client-api 1.0.93 → 1.0.94

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.
Files changed (2) hide show
  1. package/lib/skill.js +25 -0
  2. package/package.json +1 -1
package/lib/skill.js CHANGED
@@ -297,6 +297,30 @@ export const getCurrentUserTeamSkills = (maxDepth, token) => {
297
297
  });
298
298
  };
299
299
 
300
+ /**
301
+ * Get skill template updates
302
+ * @param {String} id The skill id
303
+ * @param {String} token
304
+ * @returns {Promise}
305
+ */
306
+ export const getSkillTemplateUpdates = (id, token) => {
307
+ return new Promise(function (resolve, reject) {
308
+ let confirmationRequest = client.get(
309
+ `api/v1/skills/getskilltemplateupdates/${id}`,
310
+ {
311
+ headers: { authorization: token },
312
+ }
313
+ );
314
+ confirmationRequest
315
+ .then((response) => {
316
+ resolve(response.data);
317
+ })
318
+ .catch((error) => {
319
+ reject(error);
320
+ });
321
+ });
322
+ };
323
+
300
324
  /**
301
325
  * Import skill templates
302
326
  * @param {Array<String>} data The list of role templates to be imported
@@ -418,6 +442,7 @@ const skill = {
418
442
  getSkillRequiredAssessmentType,
419
443
  getSkillInformationById,
420
444
  getSkillList,
445
+ getSkillTemplateUpdates,
421
446
  getTeamSkillsById,
422
447
  getCurrentUserTeamSkills,
423
448
  importSkillTemplates,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.0.93",
3
+ "version": "1.0.94",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {