@stackfactor/client-api 1.0.14 → 1.0.16
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/skillTemplate.js +24 -0
- package/lib/utils.js +1 -1
- package/package.json +1 -1
package/lib/skillTemplate.js
CHANGED
|
@@ -131,6 +131,30 @@ module.exports = {
|
|
|
131
131
|
});
|
|
132
132
|
},
|
|
133
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Get skill tecnology stacks template list
|
|
136
|
+
* @param {String} token Authorization token
|
|
137
|
+
*/
|
|
138
|
+
getTechnologyStacks: (token) => {
|
|
139
|
+
return new Promise(function (resolve, reject) {
|
|
140
|
+
const requestData = {};
|
|
141
|
+
let confirmationRequest = axios.get(
|
|
142
|
+
`api/v1/skilltemplates/stacks`,
|
|
143
|
+
requestData,
|
|
144
|
+
{
|
|
145
|
+
headers: { authorization: token },
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
confirmationRequest
|
|
149
|
+
.then((response) => {
|
|
150
|
+
resolve(response.data);
|
|
151
|
+
})
|
|
152
|
+
.catch((error) => {
|
|
153
|
+
reject(error);
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
|
|
134
158
|
/**
|
|
135
159
|
* Publish template
|
|
136
160
|
* @param {number} id The id of the template to be published
|
package/lib/utils.js
CHANGED