@stackfactor/client-api 1.1.52 → 1.1.53
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/trainingPlans.js +2 -16
- package/package.json +1 -1
package/lib/trainingPlans.js
CHANGED
|
@@ -141,7 +141,7 @@ export const getTrainingPlanById = (id, version, token) => {
|
|
|
141
141
|
* Get tasks summary for a recipient across all of the training plans
|
|
142
142
|
* @param {String} token Authorization token
|
|
143
143
|
*/
|
|
144
|
-
const getAllTrainingPlansTasksSummary = async (token = null) => {
|
|
144
|
+
export const getAllTrainingPlansTasksSummary = async (token = null) => {
|
|
145
145
|
return new Promise(function (resolve, reject) {
|
|
146
146
|
let confirmationRequest = client.get(`api/v1/trainingplans/taskssummary`, {
|
|
147
147
|
headers: token ? { authorization: token } : {},
|
|
@@ -262,7 +262,7 @@ export const updateTrainingPlan = (planId, data, saveAsDraft, token) => {
|
|
|
262
262
|
* @param {String} token
|
|
263
263
|
* @returns {Promise<Object>}
|
|
264
264
|
*/
|
|
265
|
-
const updateTrainingPlanTaskStatus = (id, status, token) => {
|
|
265
|
+
export const updateTrainingPlanTaskStatus = (id, status, token) => {
|
|
266
266
|
return new Promise(function (resolve, reject) {
|
|
267
267
|
let data = {
|
|
268
268
|
id: id,
|
|
@@ -307,17 +307,3 @@ export const updateActivities = (planId, data, token) => {
|
|
|
307
307
|
});
|
|
308
308
|
});
|
|
309
309
|
};
|
|
310
|
-
|
|
311
|
-
export default {
|
|
312
|
-
createTrainingPlan,
|
|
313
|
-
deleteTrainingPlan,
|
|
314
|
-
discardTrainingPlanChanges,
|
|
315
|
-
generateNewBaseline,
|
|
316
|
-
getAllTrainingPlansTasksSummary,
|
|
317
|
-
getTrainingPlanById,
|
|
318
|
-
getListOfTrainingPlans,
|
|
319
|
-
publishTrainingPlan,
|
|
320
|
-
updateTrainingPlan,
|
|
321
|
-
updateTrainingPlanTaskStatus,
|
|
322
|
-
updateActivities,
|
|
323
|
-
};
|