@stackfactor/client-api 1.0.85 → 1.0.86
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/skill.js +8 -2
- package/lib/skillTemplate.js +8 -2
- package/package.json +1 -1
package/lib/skill.js
CHANGED
|
@@ -239,13 +239,19 @@ export const getSkillList = (
|
|
|
239
239
|
* Get skills for team by id
|
|
240
240
|
* @param {String} teamId The ID of the team for which skills will be loaded
|
|
241
241
|
* @param {Number} maxDepth How many levels down in the organization the skills will be loaded
|
|
242
|
+
* @param {Boolean} returnNullIfVersionNotFound Return null if the version is not found
|
|
242
243
|
* @param {String} token Authorization token
|
|
243
244
|
* @returns {Promise}
|
|
244
245
|
*/
|
|
245
|
-
export const getTeamSkillsById = (
|
|
246
|
+
export const getTeamSkillsById = (
|
|
247
|
+
teamId,
|
|
248
|
+
maxDepth,
|
|
249
|
+
returnNullIfVersionNotFound,
|
|
250
|
+
token
|
|
251
|
+
) => {
|
|
246
252
|
return new Promise(function (resolve, reject) {
|
|
247
253
|
let confirmationRequest = client.get(
|
|
248
|
-
`api/v1/skills/getteambyid/${teamId}/${maxDepth}`,
|
|
254
|
+
`api/v1/skills/getteambyid/${teamId}/${maxDepth}/${returnNullIfVersionNotFound}`,
|
|
249
255
|
{
|
|
250
256
|
headers: { authorization: token },
|
|
251
257
|
}
|
package/lib/skillTemplate.js
CHANGED
|
@@ -75,12 +75,18 @@ export const discardSkillTemplateChanges = (id, token) => {
|
|
|
75
75
|
* Get skill template information
|
|
76
76
|
* @param {String} id The id of the template
|
|
77
77
|
* @param {String} version The version of the template
|
|
78
|
+
* @param {Boolean} returnNullIfVersionNotFound When true it will return null if the version is not found
|
|
78
79
|
* @param {String} token Authorization token
|
|
79
80
|
*/
|
|
80
|
-
export const getSkillTemplateInformationById = (
|
|
81
|
+
export const getSkillTemplateInformationById = (
|
|
82
|
+
id,
|
|
83
|
+
version,
|
|
84
|
+
returnNullIfVersionNotFound,
|
|
85
|
+
token
|
|
86
|
+
) => {
|
|
81
87
|
return new Promise(function (resolve, reject) {
|
|
82
88
|
let confirmationRequest = client.get(
|
|
83
|
-
`api/v1/skilltemplates/${id}/${version}`,
|
|
89
|
+
`api/v1/skilltemplates/${id}/${version}/${returnNullIfVersionNotFound}`,
|
|
84
90
|
{
|
|
85
91
|
headers: { authorization: token },
|
|
86
92
|
}
|