@stackfactor/client-api 1.1.138 → 1.1.140
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/. npmignore +11 -0
- package/package.json +4 -4
- package/dist/cjs/actionNotifications.d.ts +0 -24
- package/dist/cjs/actionNotifications.d.ts.map +0 -1
- package/dist/cjs/actionNotifications.js +0 -73
- package/dist/cjs/actionNotifications.js.map +0 -1
- package/dist/cjs/address.d.ts +0 -8
- package/dist/cjs/address.d.ts.map +0 -1
- package/dist/cjs/address.js +0 -24
- package/dist/cjs/address.js.map +0 -1
- package/dist/cjs/aiAssistant.d.ts +0 -42
- package/dist/cjs/aiAssistant.d.ts.map +0 -1
- package/dist/cjs/aiAssistant.js +0 -135
- package/dist/cjs/aiAssistant.js.map +0 -1
- package/dist/cjs/avatar.d.ts +0 -11
- package/dist/cjs/avatar.d.ts.map +0 -1
- package/dist/cjs/avatar.js +0 -32
- package/dist/cjs/avatar.js.map +0 -1
- package/dist/cjs/axiosClient.d.ts +0 -31
- package/dist/cjs/axiosClient.d.ts.map +0 -1
- package/dist/cjs/axiosClient.js +0 -123
- package/dist/cjs/axiosClient.js.map +0 -1
- package/dist/cjs/config.d.ts +0 -23
- package/dist/cjs/config.d.ts.map +0 -1
- package/dist/cjs/config.js +0 -63
- package/dist/cjs/config.js.map +0 -1
- package/dist/cjs/constants.d.ts +0 -69
- package/dist/cjs/constants.d.ts.map +0 -1
- package/dist/cjs/constants.js +0 -91
- package/dist/cjs/constants.js.map +0 -1
- package/dist/cjs/dashboard.d.ts +0 -23
- package/dist/cjs/dashboard.d.ts.map +0 -1
- package/dist/cjs/dashboard.js +0 -74
- package/dist/cjs/dashboard.js.map +0 -1
- package/dist/cjs/departmentTrainingPlans.d.ts +0 -53
- package/dist/cjs/departmentTrainingPlans.d.ts.map +0 -1
- package/dist/cjs/departmentTrainingPlans.js +0 -153
- package/dist/cjs/departmentTrainingPlans.js.map +0 -1
- package/dist/cjs/groups.d.ts +0 -90
- package/dist/cjs/groups.d.ts.map +0 -1
- package/dist/cjs/groups.js +0 -273
- package/dist/cjs/groups.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -33
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -78
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/integration.d.ts +0 -82
- package/dist/cjs/integration.d.ts.map +0 -1
- package/dist/cjs/integration.js +0 -316
- package/dist/cjs/integration.js.map +0 -1
- package/dist/cjs/integrationConfiguration.d.ts +0 -27
- package/dist/cjs/integrationConfiguration.d.ts.map +0 -1
- package/dist/cjs/integrationConfiguration.js +0 -86
- package/dist/cjs/integrationConfiguration.js.map +0 -1
- package/dist/cjs/integrations/contentGenerator.d.ts +0 -22
- package/dist/cjs/integrations/contentGenerator.d.ts.map +0 -1
- package/dist/cjs/integrations/contentGenerator.js +0 -69
- package/dist/cjs/integrations/contentGenerator.js.map +0 -1
- package/dist/cjs/learningContent.d.ts +0 -122
- package/dist/cjs/learningContent.d.ts.map +0 -1
- package/dist/cjs/learningContent.js +0 -394
- package/dist/cjs/learningContent.js.map +0 -1
- package/dist/cjs/learningPath.d.ts +0 -64
- package/dist/cjs/learningPath.d.ts.map +0 -1
- package/dist/cjs/learningPath.js +0 -205
- package/dist/cjs/learningPath.js.map +0 -1
- package/dist/cjs/logger.d.ts +0 -19
- package/dist/cjs/logger.d.ts.map +0 -1
- package/dist/cjs/logger.js +0 -60
- package/dist/cjs/logger.js.map +0 -1
- package/dist/cjs/microSkillsQuizes.d.ts +0 -18
- package/dist/cjs/microSkillsQuizes.d.ts.map +0 -1
- package/dist/cjs/microSkillsQuizes.js +0 -53
- package/dist/cjs/microSkillsQuizes.js.map +0 -1
- package/dist/cjs/quotas.d.ts +0 -15
- package/dist/cjs/quotas.d.ts.map +0 -1
- package/dist/cjs/quotas.js +0 -50
- package/dist/cjs/quotas.js.map +0 -1
- package/dist/cjs/role.d.ts +0 -113
- package/dist/cjs/role.d.ts.map +0 -1
- package/dist/cjs/role.js +0 -363
- package/dist/cjs/role.js.map +0 -1
- package/dist/cjs/roleTemplate.d.ts +0 -73
- package/dist/cjs/roleTemplate.d.ts.map +0 -1
- package/dist/cjs/roleTemplate.js +0 -236
- package/dist/cjs/roleTemplate.js.map +0 -1
- package/dist/cjs/security.d.ts +0 -27
- package/dist/cjs/security.d.ts.map +0 -1
- package/dist/cjs/security.js +0 -79
- package/dist/cjs/security.js.map +0 -1
- package/dist/cjs/skill.d.ts +0 -141
- package/dist/cjs/skill.d.ts.map +0 -1
- package/dist/cjs/skill.js +0 -440
- package/dist/cjs/skill.js.map +0 -1
- package/dist/cjs/skillAssessmentTestingSession.d.ts +0 -49
- package/dist/cjs/skillAssessmentTestingSession.d.ts.map +0 -1
- package/dist/cjs/skillAssessmentTestingSession.js +0 -156
- package/dist/cjs/skillAssessmentTestingSession.js.map +0 -1
- package/dist/cjs/skillAssessments.d.ts +0 -49
- package/dist/cjs/skillAssessments.d.ts.map +0 -1
- package/dist/cjs/skillAssessments.js +0 -156
- package/dist/cjs/skillAssessments.js.map +0 -1
- package/dist/cjs/skillTemplate.d.ts +0 -87
- package/dist/cjs/skillTemplate.d.ts.map +0 -1
- package/dist/cjs/skillTemplate.js +0 -281
- package/dist/cjs/skillTemplate.js.map +0 -1
- package/dist/cjs/talentTransfromation.d.ts +0 -29
- package/dist/cjs/talentTransfromation.d.ts.map +0 -1
- package/dist/cjs/talentTransfromation.js +0 -100
- package/dist/cjs/talentTransfromation.js.map +0 -1
- package/dist/cjs/teams.d.ts +0 -85
- package/dist/cjs/teams.d.ts.map +0 -1
- package/dist/cjs/teams.js +0 -252
- package/dist/cjs/teams.js.map +0 -1
- package/dist/cjs/tenants.d.ts +0 -16
- package/dist/cjs/tenants.d.ts.map +0 -1
- package/dist/cjs/tenants.js +0 -55
- package/dist/cjs/tenants.js.map +0 -1
- package/dist/cjs/trainingPlans.d.ts +0 -92
- package/dist/cjs/trainingPlans.d.ts.map +0 -1
- package/dist/cjs/trainingPlans.js +0 -309
- package/dist/cjs/trainingPlans.js.map +0 -1
- package/dist/cjs/trainingPlansProficiencyLevels.d.ts +0 -32
- package/dist/cjs/trainingPlansProficiencyLevels.d.ts.map +0 -1
- package/dist/cjs/trainingPlansProficiencyLevels.js +0 -97
- package/dist/cjs/trainingPlansProficiencyLevels.js.map +0 -1
- package/dist/cjs/userInformation.d.ts +0 -29
- package/dist/cjs/userInformation.d.ts.map +0 -1
- package/dist/cjs/userInformation.js +0 -81
- package/dist/cjs/userInformation.js.map +0 -1
- package/dist/cjs/users.d.ts +0 -206
- package/dist/cjs/users.d.ts.map +0 -1
- package/dist/cjs/users.js +0 -694
- package/dist/cjs/users.js.map +0 -1
- package/dist/cjs/utils.d.ts +0 -14
- package/dist/cjs/utils.d.ts.map +0 -1
- package/dist/cjs/utils.js +0 -58
- package/dist/cjs/utils.js.map +0 -1
- package/dist/esm/actionNotifications.d.ts +0 -24
- package/dist/esm/actionNotifications.d.ts.map +0 -1
- package/dist/esm/actionNotifications.js +0 -67
- package/dist/esm/actionNotifications.js.map +0 -1
- package/dist/esm/address.d.ts +0 -8
- package/dist/esm/address.d.ts.map +0 -1
- package/dist/esm/address.js +0 -20
- package/dist/esm/address.js.map +0 -1
- package/dist/esm/aiAssistant.d.ts +0 -42
- package/dist/esm/aiAssistant.d.ts.map +0 -1
- package/dist/esm/aiAssistant.js +0 -126
- package/dist/esm/aiAssistant.js.map +0 -1
- package/dist/esm/avatar.d.ts +0 -11
- package/dist/esm/avatar.d.ts.map +0 -1
- package/dist/esm/avatar.js +0 -28
- package/dist/esm/avatar.js.map +0 -1
- package/dist/esm/axiosClient.d.ts +0 -31
- package/dist/esm/axiosClient.d.ts.map +0 -1
- package/dist/esm/axiosClient.js +0 -78
- package/dist/esm/axiosClient.js.map +0 -1
- package/dist/esm/config.d.ts +0 -23
- package/dist/esm/config.d.ts.map +0 -1
- package/dist/esm/config.js +0 -57
- package/dist/esm/config.js.map +0 -1
- package/dist/esm/constants.d.ts +0 -69
- package/dist/esm/constants.d.ts.map +0 -1
- package/dist/esm/constants.js +0 -88
- package/dist/esm/constants.js.map +0 -1
- package/dist/esm/dashboard.d.ts +0 -23
- package/dist/esm/dashboard.d.ts.map +0 -1
- package/dist/esm/dashboard.js +0 -68
- package/dist/esm/dashboard.js.map +0 -1
- package/dist/esm/departmentTrainingPlans.d.ts +0 -53
- package/dist/esm/departmentTrainingPlans.d.ts.map +0 -1
- package/dist/esm/departmentTrainingPlans.js +0 -144
- package/dist/esm/departmentTrainingPlans.js.map +0 -1
- package/dist/esm/groups.d.ts +0 -90
- package/dist/esm/groups.d.ts.map +0 -1
- package/dist/esm/groups.js +0 -258
- package/dist/esm/groups.js.map +0 -1
- package/dist/esm/index.d.ts +0 -33
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -33
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/integration.d.ts +0 -82
- package/dist/esm/integration.d.ts.map +0 -1
- package/dist/esm/integration.js +0 -299
- package/dist/esm/integration.js.map +0 -1
- package/dist/esm/integrationConfiguration.d.ts +0 -27
- package/dist/esm/integrationConfiguration.d.ts.map +0 -1
- package/dist/esm/integrationConfiguration.js +0 -80
- package/dist/esm/integrationConfiguration.js.map +0 -1
- package/dist/esm/integrations/contentGenerator.d.ts +0 -22
- package/dist/esm/integrations/contentGenerator.d.ts.map +0 -1
- package/dist/esm/integrations/contentGenerator.js +0 -64
- package/dist/esm/integrations/contentGenerator.js.map +0 -1
- package/dist/esm/learningContent.d.ts +0 -122
- package/dist/esm/learningContent.d.ts.map +0 -1
- package/dist/esm/learningContent.js +0 -376
- package/dist/esm/learningContent.js.map +0 -1
- package/dist/esm/learningPath.d.ts +0 -64
- package/dist/esm/learningPath.d.ts.map +0 -1
- package/dist/esm/learningPath.js +0 -194
- package/dist/esm/learningPath.js.map +0 -1
- package/dist/esm/logger.d.ts +0 -19
- package/dist/esm/logger.d.ts.map +0 -1
- package/dist/esm/logger.js +0 -55
- package/dist/esm/logger.js.map +0 -1
- package/dist/esm/microSkillsQuizes.d.ts +0 -18
- package/dist/esm/microSkillsQuizes.d.ts.map +0 -1
- package/dist/esm/microSkillsQuizes.js +0 -48
- package/dist/esm/microSkillsQuizes.js.map +0 -1
- package/dist/esm/quotas.d.ts +0 -15
- package/dist/esm/quotas.d.ts.map +0 -1
- package/dist/esm/quotas.js +0 -45
- package/dist/esm/quotas.js.map +0 -1
- package/dist/esm/role.d.ts +0 -113
- package/dist/esm/role.d.ts.map +0 -1
- package/dist/esm/role.js +0 -346
- package/dist/esm/role.js.map +0 -1
- package/dist/esm/roleTemplate.d.ts +0 -73
- package/dist/esm/roleTemplate.d.ts.map +0 -1
- package/dist/esm/roleTemplate.js +0 -224
- package/dist/esm/roleTemplate.js.map +0 -1
- package/dist/esm/security.d.ts +0 -27
- package/dist/esm/security.d.ts.map +0 -1
- package/dist/esm/security.js +0 -72
- package/dist/esm/security.js.map +0 -1
- package/dist/esm/skill.d.ts +0 -141
- package/dist/esm/skill.d.ts.map +0 -1
- package/dist/esm/skill.js +0 -418
- package/dist/esm/skill.js.map +0 -1
- package/dist/esm/skillAssessmentTestingSession.d.ts +0 -49
- package/dist/esm/skillAssessmentTestingSession.d.ts.map +0 -1
- package/dist/esm/skillAssessmentTestingSession.js +0 -147
- package/dist/esm/skillAssessmentTestingSession.js.map +0 -1
- package/dist/esm/skillAssessments.d.ts +0 -49
- package/dist/esm/skillAssessments.d.ts.map +0 -1
- package/dist/esm/skillAssessments.js +0 -147
- package/dist/esm/skillAssessments.js.map +0 -1
- package/dist/esm/skillTemplate.d.ts +0 -87
- package/dist/esm/skillTemplate.d.ts.map +0 -1
- package/dist/esm/skillTemplate.js +0 -267
- package/dist/esm/skillTemplate.js.map +0 -1
- package/dist/esm/talentTransfromation.d.ts +0 -29
- package/dist/esm/talentTransfromation.d.ts.map +0 -1
- package/dist/esm/talentTransfromation.js +0 -93
- package/dist/esm/talentTransfromation.js.map +0 -1
- package/dist/esm/teams.d.ts +0 -85
- package/dist/esm/teams.d.ts.map +0 -1
- package/dist/esm/teams.js +0 -238
- package/dist/esm/teams.js.map +0 -1
- package/dist/esm/tenants.d.ts +0 -16
- package/dist/esm/tenants.d.ts.map +0 -1
- package/dist/esm/tenants.js +0 -50
- package/dist/esm/tenants.js.map +0 -1
- package/dist/esm/trainingPlans.d.ts +0 -92
- package/dist/esm/trainingPlans.d.ts.map +0 -1
- package/dist/esm/trainingPlans.js +0 -293
- package/dist/esm/trainingPlans.js.map +0 -1
- package/dist/esm/trainingPlansProficiencyLevels.d.ts +0 -32
- package/dist/esm/trainingPlansProficiencyLevels.d.ts.map +0 -1
- package/dist/esm/trainingPlansProficiencyLevels.js +0 -90
- package/dist/esm/trainingPlansProficiencyLevels.js.map +0 -1
- package/dist/esm/userInformation.d.ts +0 -29
- package/dist/esm/userInformation.d.ts.map +0 -1
- package/dist/esm/userInformation.js +0 -75
- package/dist/esm/userInformation.js.map +0 -1
- package/dist/esm/users.d.ts +0 -206
- package/dist/esm/users.d.ts.map +0 -1
- package/dist/esm/users.js +0 -663
- package/dist/esm/users.js.map +0 -1
- package/dist/esm/utils.d.ts +0 -14
- package/dist/esm/utils.d.ts.map +0 -1
- package/dist/esm/utils.js +0 -50
- package/dist/esm/utils.js.map +0 -1
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
import { client } from "./axiosClient";
|
|
2
|
-
/**
|
|
3
|
-
* Create learning content and set information
|
|
4
|
-
* @param {Object} data Learning content data
|
|
5
|
-
* @param {String} token Authorization token
|
|
6
|
-
* @returns {Promise<object>} The created learning content
|
|
7
|
-
*/
|
|
8
|
-
export const createLearningContent = (data, token) => {
|
|
9
|
-
return new Promise((resolve, reject) => {
|
|
10
|
-
const requestData = {
|
|
11
|
-
data: data,
|
|
12
|
-
};
|
|
13
|
-
const confirmationRequest = client.put("api/v1/learningcontent", requestData, {
|
|
14
|
-
headers: { authorization: token },
|
|
15
|
-
});
|
|
16
|
-
confirmationRequest
|
|
17
|
-
.then((response) => {
|
|
18
|
-
resolve(response.data);
|
|
19
|
-
})
|
|
20
|
-
.catch((error) => {
|
|
21
|
-
reject(error);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Delete learning content
|
|
27
|
-
* @param {String} id The id of the learning content to be deleted
|
|
28
|
-
* @param {String} comments The comments included with the deletion
|
|
29
|
-
* @param {String} token Authorization token
|
|
30
|
-
* @returns {Promise<object>} The response from the server
|
|
31
|
-
*/
|
|
32
|
-
export const deleteLearningContent = (id, comments, token) => {
|
|
33
|
-
const data = {
|
|
34
|
-
id: id,
|
|
35
|
-
};
|
|
36
|
-
if (comments)
|
|
37
|
-
data.comments = comments;
|
|
38
|
-
return new Promise((resolve, reject) => {
|
|
39
|
-
const request = client.delete(`api/v1/learningcontent/`, {
|
|
40
|
-
headers: { authorization: token },
|
|
41
|
-
data: data,
|
|
42
|
-
});
|
|
43
|
-
request
|
|
44
|
-
.then((response) => {
|
|
45
|
-
resolve(response.data);
|
|
46
|
-
})
|
|
47
|
-
.catch((error) => {
|
|
48
|
-
reject(error);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Discard the learning content draft changes
|
|
54
|
-
* @param {String} id The id of the learning content to be deleted
|
|
55
|
-
* @param {String} token Authorization token
|
|
56
|
-
* @returns {Promise<object>} The response from the server
|
|
57
|
-
*/
|
|
58
|
-
export const discardLearningContentChanges = (id, token) => {
|
|
59
|
-
return new Promise((resolve, reject) => {
|
|
60
|
-
const data = {};
|
|
61
|
-
const request = client.get(`api/v1/learningcontent/discard/${id}`, {
|
|
62
|
-
headers: { authorization: token },
|
|
63
|
-
data: data,
|
|
64
|
-
});
|
|
65
|
-
request
|
|
66
|
-
.then((response) => {
|
|
67
|
-
resolve(response.data);
|
|
68
|
-
})
|
|
69
|
-
.catch((error) => {
|
|
70
|
-
reject(error);
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Generate the learning activity content
|
|
76
|
-
* @param {String} learningObjectives
|
|
77
|
-
* @param {String} skillId
|
|
78
|
-
* @param {String} microSkillId
|
|
79
|
-
* @param {Object} learningActivity
|
|
80
|
-
* @param {List<String>} otherLearningActivities
|
|
81
|
-
* @param {List<String>} sections
|
|
82
|
-
* @param {String} token
|
|
83
|
-
*/
|
|
84
|
-
export const generateLearningActivityContent = (learningObjectives, skillId, microSkillId, learningActivity, otherLearningActivities, sections, token) => {
|
|
85
|
-
return new Promise((resolve, reject) => {
|
|
86
|
-
const requestData = {
|
|
87
|
-
learningObjectives: learningObjectives,
|
|
88
|
-
learningActivity: learningActivity,
|
|
89
|
-
microSkillId: microSkillId,
|
|
90
|
-
sections: sections,
|
|
91
|
-
};
|
|
92
|
-
if (otherLearningActivities) {
|
|
93
|
-
requestData.otherLearningActivities = otherLearningActivities;
|
|
94
|
-
}
|
|
95
|
-
const request = client.post(`api/v1/learningcontent/generatelearningactivitycontent/${skillId}`, requestData, {
|
|
96
|
-
headers: { authorization: token },
|
|
97
|
-
});
|
|
98
|
-
request
|
|
99
|
-
.then((response) => {
|
|
100
|
-
resolve(response.data);
|
|
101
|
-
})
|
|
102
|
-
.catch((error) => {
|
|
103
|
-
reject(error);
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Generate micro skill test knowledge
|
|
109
|
-
* @param {String} microSkill
|
|
110
|
-
* @param {String} token
|
|
111
|
-
* @returns {Promise<object>}
|
|
112
|
-
*/
|
|
113
|
-
export const generateMicroSkillTestKnowledge = (microSkill, token) => {
|
|
114
|
-
return new Promise((resolve, reject) => {
|
|
115
|
-
const data = {
|
|
116
|
-
microSkill: microSkill,
|
|
117
|
-
};
|
|
118
|
-
const confirmationRequest = client.post(`api/v1/learningcontent/generatemicroskilltestknowledge`, data, {
|
|
119
|
-
headers: { authorization: token },
|
|
120
|
-
});
|
|
121
|
-
confirmationRequest
|
|
122
|
-
.then((response) => {
|
|
123
|
-
resolve(response.data);
|
|
124
|
-
})
|
|
125
|
-
.catch((error) => {
|
|
126
|
-
reject(error);
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Get the learning content information by id
|
|
132
|
-
* @param {String} id The id of the learning content
|
|
133
|
-
* @param {String} version The version of the learning content
|
|
134
|
-
* @param {String} token Authorization token
|
|
135
|
-
* @returns {Promise<object>} The response from the server
|
|
136
|
-
*/
|
|
137
|
-
export const getLearningContentInformationById = (id, version, token) => {
|
|
138
|
-
return new Promise((resolve, reject) => {
|
|
139
|
-
const confirmationRequest = client.get(`api/v1/learningcontent/${id}/${version}`, {
|
|
140
|
-
headers: { authorization: token },
|
|
141
|
-
});
|
|
142
|
-
confirmationRequest
|
|
143
|
-
.then((response) => {
|
|
144
|
-
resolve(response.data);
|
|
145
|
-
})
|
|
146
|
-
.catch((error) => {
|
|
147
|
-
reject(error);
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* Get the list of available content types
|
|
153
|
-
* @param {Array<String>} filter The filter used to select the learning content
|
|
154
|
-
* @param {String} version The version to be retrieved
|
|
155
|
-
* @param {boolean} includeDeleted When true it will return the deleted records as well
|
|
156
|
-
* @param {String} token Authorization token
|
|
157
|
-
* @returns {Promise<Array<Object>>} The list of available content
|
|
158
|
-
*/
|
|
159
|
-
export const getLearningContentList = (filter, version, includeDeleted, token) => {
|
|
160
|
-
return new Promise((resolve, reject) => {
|
|
161
|
-
const requestData = {
|
|
162
|
-
version: version,
|
|
163
|
-
includeDeleted: includeDeleted,
|
|
164
|
-
};
|
|
165
|
-
if (filter)
|
|
166
|
-
requestData.filter = filter;
|
|
167
|
-
const confirmationRequest = client.post(`api/v1/learningcontent`, requestData, {
|
|
168
|
-
headers: { authorization: token },
|
|
169
|
-
});
|
|
170
|
-
confirmationRequest
|
|
171
|
-
.then((response) => {
|
|
172
|
-
resolve(response.data);
|
|
173
|
-
})
|
|
174
|
-
.catch((error) => {
|
|
175
|
-
reject(error);
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* Migrate learning content storage
|
|
181
|
-
* @param {String} id The id of the content to be migrated
|
|
182
|
-
* @param {String} token Authorization token
|
|
183
|
-
* @returns {Promise<object>} The response from the server
|
|
184
|
-
*/
|
|
185
|
-
export const migrateLearningContentStorageType = (id, token) => {
|
|
186
|
-
return new Promise((resolve, reject) => {
|
|
187
|
-
const data = {};
|
|
188
|
-
const confirmationRequest = client.post(`api/v1/learningcontent/migratestorage/${id}`, data, {
|
|
189
|
-
headers: { authorization: token },
|
|
190
|
-
});
|
|
191
|
-
confirmationRequest
|
|
192
|
-
.then((response) => {
|
|
193
|
-
resolve(response.data);
|
|
194
|
-
})
|
|
195
|
-
.catch((error) => {
|
|
196
|
-
reject(error);
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
|
-
/**
|
|
201
|
-
* Publish learning content
|
|
202
|
-
* @param {String} id The id of the content to be published
|
|
203
|
-
* @param {String} comments The comments to be include with the request
|
|
204
|
-
* @param {String} token Authorization token
|
|
205
|
-
* @returns {Promise<object>} The response from the server
|
|
206
|
-
*/
|
|
207
|
-
export const publishLearningContent = (id, comments, token) => {
|
|
208
|
-
return new Promise((resolve, reject) => {
|
|
209
|
-
const data = {};
|
|
210
|
-
if (comments)
|
|
211
|
-
data.comments = comments;
|
|
212
|
-
const confirmationRequest = client.post(`api/v1/learningcontent/publish/${id}`, data, {
|
|
213
|
-
headers: { authorization: token },
|
|
214
|
-
});
|
|
215
|
-
confirmationRequest
|
|
216
|
-
.then((response) => {
|
|
217
|
-
resolve(response.data);
|
|
218
|
-
})
|
|
219
|
-
.catch((error) => {
|
|
220
|
-
reject(error);
|
|
221
|
-
});
|
|
222
|
-
});
|
|
223
|
-
};
|
|
224
|
-
/**
|
|
225
|
-
* Set learning content information
|
|
226
|
-
* @param {String} id The id of the learning content to be updated
|
|
227
|
-
* @param {Object} data Data used to update the learning content
|
|
228
|
-
* @param {String} token Authorization token
|
|
229
|
-
* @returns {Promise<object>} The updated learning content
|
|
230
|
-
*/
|
|
231
|
-
export const setLearningContentInformation = (id, data, token) => {
|
|
232
|
-
return new Promise((resolve, reject) => {
|
|
233
|
-
const requestData = {
|
|
234
|
-
data: data,
|
|
235
|
-
id: id,
|
|
236
|
-
};
|
|
237
|
-
const confirmationRequest = client.post(`api/v1/learningcontent/update`, requestData, {
|
|
238
|
-
headers: { authorization: token },
|
|
239
|
-
});
|
|
240
|
-
confirmationRequest
|
|
241
|
-
.then((response) => {
|
|
242
|
-
resolve(response.data);
|
|
243
|
-
})
|
|
244
|
-
.catch((error) => {
|
|
245
|
-
reject(error);
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
};
|
|
249
|
-
/**
|
|
250
|
-
* Set partial content information
|
|
251
|
-
* @param {String} id
|
|
252
|
-
* @param {Object} data
|
|
253
|
-
* @param {String} token
|
|
254
|
-
* @returns {Promise<object>}
|
|
255
|
-
*/
|
|
256
|
-
export const setLearningContentPartialContentInformation = (id, data, token) => {
|
|
257
|
-
return new Promise((resolve, reject) => {
|
|
258
|
-
const requestData = {
|
|
259
|
-
data: data,
|
|
260
|
-
id: id,
|
|
261
|
-
};
|
|
262
|
-
const confirmationRequest = client.post(`api/v1/learningcontent/updatepartialcontent/${id}`, requestData, {
|
|
263
|
-
headers: { authorization: token },
|
|
264
|
-
});
|
|
265
|
-
confirmationRequest
|
|
266
|
-
.then((response) => {
|
|
267
|
-
resolve(response.data);
|
|
268
|
-
})
|
|
269
|
-
.catch((error) => {
|
|
270
|
-
reject(error);
|
|
271
|
-
});
|
|
272
|
-
});
|
|
273
|
-
};
|
|
274
|
-
/**
|
|
275
|
-
* Set the content for a specific learning activity
|
|
276
|
-
* @param {String} id
|
|
277
|
-
* @param {String} learningcontentid
|
|
278
|
-
* @param {String} microSkillId
|
|
279
|
-
* @param {Object} data
|
|
280
|
-
* @param {String} token
|
|
281
|
-
* @returns {Promise<String>} OK word if the operation was successful
|
|
282
|
-
*/
|
|
283
|
-
export const setLearningContentLearningContentInformation = (id, learningcontentid, microSkillId, data, token) => {
|
|
284
|
-
return new Promise((resolve, reject) => {
|
|
285
|
-
const requestData = {
|
|
286
|
-
data: data,
|
|
287
|
-
id: id,
|
|
288
|
-
learningcontentid: learningcontentid,
|
|
289
|
-
microSkillId: microSkillId,
|
|
290
|
-
};
|
|
291
|
-
const confirmationRequest = client.post(`api/v1/learningcontent/updatelearningcontent/`, requestData, {
|
|
292
|
-
headers: { authorization: token },
|
|
293
|
-
});
|
|
294
|
-
confirmationRequest
|
|
295
|
-
.then((response) => {
|
|
296
|
-
resolve(response.data);
|
|
297
|
-
})
|
|
298
|
-
.catch((error) => {
|
|
299
|
-
reject(error);
|
|
300
|
-
});
|
|
301
|
-
});
|
|
302
|
-
};
|
|
303
|
-
/**
|
|
304
|
-
* Set all the learning content for a specific micro skill
|
|
305
|
-
* @param {String} id
|
|
306
|
-
* @param {String} microskillid
|
|
307
|
-
* @param {Object} data
|
|
308
|
-
* @param {String} token
|
|
309
|
-
* @returns {Promise<String>} OK word if the operation was successful
|
|
310
|
-
*/
|
|
311
|
-
export const setLearningContentLearningMicroSkillContentInformation = (id, microskillid, data, token) => {
|
|
312
|
-
return new Promise((resolve, reject) => {
|
|
313
|
-
const requestData = {
|
|
314
|
-
data: data,
|
|
315
|
-
};
|
|
316
|
-
const confirmationRequest = client.post(`api/v1/learningcontent/updatemicroskilllearningcontent/${id}/${microskillid}`, requestData, {
|
|
317
|
-
headers: { authorization: token },
|
|
318
|
-
});
|
|
319
|
-
confirmationRequest
|
|
320
|
-
.then((response) => {
|
|
321
|
-
resolve(response.data);
|
|
322
|
-
})
|
|
323
|
-
.catch((error) => {
|
|
324
|
-
reject(error);
|
|
325
|
-
});
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
/**
|
|
329
|
-
* Update the learning content tags
|
|
330
|
-
* @param {String} id The id of the learning to be updated
|
|
331
|
-
* @param {Object} tags Updated learning content tags
|
|
332
|
-
* @param {String} token Authorization token
|
|
333
|
-
*/
|
|
334
|
-
export const setLearningContentTags = (id, tags, token) => {
|
|
335
|
-
return new Promise((resolve, reject) => {
|
|
336
|
-
const requestData = {
|
|
337
|
-
tags: tags,
|
|
338
|
-
id: id,
|
|
339
|
-
};
|
|
340
|
-
const confirmationRequest = client.post(`api/v1/learningcontent/updatetags/`, requestData, {
|
|
341
|
-
headers: { authorization: token },
|
|
342
|
-
});
|
|
343
|
-
confirmationRequest
|
|
344
|
-
.then((response) => {
|
|
345
|
-
resolve(response.data);
|
|
346
|
-
})
|
|
347
|
-
.catch((error) => {
|
|
348
|
-
reject(error);
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
};
|
|
352
|
-
/**
|
|
353
|
-
* Watch learning content
|
|
354
|
-
* @param {String} id The id of the learning content to be updated
|
|
355
|
-
* @param {Boolean} watch Set to true or false
|
|
356
|
-
* @param {String} token Authorization token
|
|
357
|
-
*/
|
|
358
|
-
export const watchLearningContent = (id, watch, token) => {
|
|
359
|
-
return new Promise((resolve, reject) => {
|
|
360
|
-
const requestData = {
|
|
361
|
-
id: id,
|
|
362
|
-
watch: watch,
|
|
363
|
-
};
|
|
364
|
-
const confirmationRequest = client.post(`api/v1/learningcontent/watch`, requestData, {
|
|
365
|
-
headers: { authorization: token },
|
|
366
|
-
});
|
|
367
|
-
confirmationRequest
|
|
368
|
-
.then((response) => {
|
|
369
|
-
resolve(response.data);
|
|
370
|
-
})
|
|
371
|
-
.catch((error) => {
|
|
372
|
-
reject(error);
|
|
373
|
-
});
|
|
374
|
-
});
|
|
375
|
-
};
|
|
376
|
-
//# sourceMappingURL=learningContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"learningContent.js","sourceRoot":"","sources":["../../src/lib/learning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WAAW,EACX;YACE,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;SAClC,CACF,CAAC;QACF,mBAAmB;aAChB,IAAI,CAAC,CAAC,QAAwB,EAAE,EAAE;YACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAkB,EAAE,EAAE;YAC5B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create learning path and set information
|
|
3
|
-
* @param {Object} data
|
|
4
|
-
* @param {String} token Authorization token
|
|
5
|
-
* @returns {Promise<object>}
|
|
6
|
-
*/
|
|
7
|
-
export declare const createLearningPath: (data: object, token: string) => Promise<object>;
|
|
8
|
-
/**
|
|
9
|
-
* Delete learning path
|
|
10
|
-
* @param {String} id The id of the template to be deleted
|
|
11
|
-
* @param {String} comments The comments for approver
|
|
12
|
-
* @param {String} token Authorization token
|
|
13
|
-
* @returns {Promise<object>}
|
|
14
|
-
*/
|
|
15
|
-
export declare const deleteLearningPath: (id: string, comments: string, token: string) => Promise<object>;
|
|
16
|
-
/**
|
|
17
|
-
* Discard the training plan draft changes
|
|
18
|
-
* @param {String} id The id of the training plan to be deleted
|
|
19
|
-
* @param {String} token Authorization token
|
|
20
|
-
* @returns {Promise<object>}
|
|
21
|
-
*/
|
|
22
|
-
export declare const discardLearningPathChanges: (id: string, token: string) => Promise<object>;
|
|
23
|
-
/**
|
|
24
|
-
* Get training plan template information
|
|
25
|
-
* @param {String} id The id of the template
|
|
26
|
-
* @param {String} version The version of the template
|
|
27
|
-
* @param {String} token Authorization token
|
|
28
|
-
* @returns {Promise<object>}
|
|
29
|
-
*/
|
|
30
|
-
export declare const getLearningPathInformationById: (id: string, version: string, token: string) => Promise<object>;
|
|
31
|
-
/**
|
|
32
|
-
* Get learning path list
|
|
33
|
-
* @param {Array<String>} list The filter used to select the skill
|
|
34
|
-
* @param {String} version The version to be retrieved
|
|
35
|
-
* @param {boolean} includeDeleted When true it will return the deleted records as well
|
|
36
|
-
* @param {String} token Authorization token
|
|
37
|
-
* @returns {Promise<Array<Object>>} The list of available content
|
|
38
|
-
*/
|
|
39
|
-
export declare const getLearningPathsList: (list: string[], version: string, includeDeleted: boolean, token: string) => Promise<object[]>;
|
|
40
|
-
/**
|
|
41
|
-
* Publish training plan template
|
|
42
|
-
* @param {String} id The id of the template to be published
|
|
43
|
-
* @param {String} comments The comments to be include with the request
|
|
44
|
-
* @param {String} token Authorization token
|
|
45
|
-
* @returns {Promise<object>}
|
|
46
|
-
*/
|
|
47
|
-
export declare const publishLearningPath: (id: string, comments: string, token: string) => Promise<object>;
|
|
48
|
-
/**
|
|
49
|
-
* Set learning path profile information
|
|
50
|
-
* @param {String} id The id of the template to be updated
|
|
51
|
-
* @param {Object} data Data used to update the template
|
|
52
|
-
* @param {String} token Authorization token
|
|
53
|
-
* @returns {Promise<object>}
|
|
54
|
-
*/
|
|
55
|
-
export declare const setLearningPathInformation: (id: string, data: object, token: string) => Promise<object>;
|
|
56
|
-
/**
|
|
57
|
-
* Update learning path tags
|
|
58
|
-
* @param {String} id The id of the template to be updated
|
|
59
|
-
* @param {Object} tags The updated tags
|
|
60
|
-
* @param {String} token Authorization token
|
|
61
|
-
* @returns {Promise<object>}
|
|
62
|
-
*/
|
|
63
|
-
export declare const setLearningPathTags: (id: string, tags: object, token: string) => Promise<object>;
|
|
64
|
-
//# sourceMappingURL=learningPath.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"learningPath.d.ts","sourceRoot":"","sources":["../../src/lib/learningPath.ts"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,SAAU,MAAM,SAAS,MAAM,KAAG,OAAO,CAAC,MAAM,CAiB9E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,OAAQ,MAAM,YAAY,MAAM,SAAS,MAAM,KAAG,OAAO,CAAC,MAAM,CAkB9F,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,OAAQ,MAAM,SAAS,MAAM,KAAG,OAAO,CAAC,MAAM,CAepF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,OAAQ,MAAM,WAAW,MAAM,SAAS,MAAM,KAAG,OAAO,CAAC,MAAM,CAgBzG,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,SACzB,MAAM,EAAE,WACL,MAAM,kBACC,OAAO,SAChB,MAAM,KACZ,OAAO,CAAC,MAAM,EAAE,CAsBlB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,OAAQ,MAAM,YAAY,MAAM,SAAS,MAAM,KAAG,OAAO,CAAC,MAAM,CAmB/F,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,OAAQ,MAAM,QAAQ,MAAM,SAAS,MAAM,KAAG,OAAO,CAAC,MAAM,CAqBlG,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,OAAQ,MAAM,QAAQ,MAAM,SAAS,MAAM,KAAG,OAAO,CAAC,MAAM,CAqB3F,CAAC"}
|
package/dist/esm/learningPath.js
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { client } from "./axiosClient";
|
|
2
|
-
/**
|
|
3
|
-
* Create learning path and set information
|
|
4
|
-
* @param {Object} data
|
|
5
|
-
* @param {String} token Authorization token
|
|
6
|
-
* @returns {Promise<object>}
|
|
7
|
-
*/
|
|
8
|
-
export const createLearningPath = (data, token) => {
|
|
9
|
-
return new Promise((resolve, reject) => {
|
|
10
|
-
const confirmationRequest = client.put("api/v1/learningpaths", { data: data }, {
|
|
11
|
-
headers: { authorization: token },
|
|
12
|
-
});
|
|
13
|
-
confirmationRequest
|
|
14
|
-
.then((response) => {
|
|
15
|
-
resolve(response.data);
|
|
16
|
-
})
|
|
17
|
-
.catch((error) => {
|
|
18
|
-
reject(error);
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Delete learning path
|
|
24
|
-
* @param {String} id The id of the template to be deleted
|
|
25
|
-
* @param {String} comments The comments for approver
|
|
26
|
-
* @param {String} token Authorization token
|
|
27
|
-
* @returns {Promise<object>}
|
|
28
|
-
*/
|
|
29
|
-
export const deleteLearningPath = (id, comments, token) => {
|
|
30
|
-
return new Promise((resolve, reject) => {
|
|
31
|
-
const data = {
|
|
32
|
-
id: id,
|
|
33
|
-
};
|
|
34
|
-
if (comments)
|
|
35
|
-
data.comments = comments;
|
|
36
|
-
const request = client.delete(`api/v1/learningpaths/`, {
|
|
37
|
-
headers: { authorization: token },
|
|
38
|
-
data: data,
|
|
39
|
-
});
|
|
40
|
-
request
|
|
41
|
-
.then((response) => {
|
|
42
|
-
resolve(response.data);
|
|
43
|
-
})
|
|
44
|
-
.catch((error) => {
|
|
45
|
-
reject(error);
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Discard the training plan draft changes
|
|
51
|
-
* @param {String} id The id of the training plan to be deleted
|
|
52
|
-
* @param {String} token Authorization token
|
|
53
|
-
* @returns {Promise<object>}
|
|
54
|
-
*/
|
|
55
|
-
export const discardLearningPathChanges = (id, token) => {
|
|
56
|
-
return new Promise((resolve, reject) => {
|
|
57
|
-
const data = {};
|
|
58
|
-
const request = client.get(`api/v1/learningpaths/discard/${id}`, {
|
|
59
|
-
headers: { authorization: token },
|
|
60
|
-
data: data,
|
|
61
|
-
});
|
|
62
|
-
request
|
|
63
|
-
.then((response) => {
|
|
64
|
-
resolve(response.data);
|
|
65
|
-
})
|
|
66
|
-
.catch((error) => {
|
|
67
|
-
reject(error);
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Get training plan template information
|
|
73
|
-
* @param {String} id The id of the template
|
|
74
|
-
* @param {String} version The version of the template
|
|
75
|
-
* @param {String} token Authorization token
|
|
76
|
-
* @returns {Promise<object>}
|
|
77
|
-
*/
|
|
78
|
-
export const getLearningPathInformationById = (id, version, token) => {
|
|
79
|
-
return new Promise((resolve, reject) => {
|
|
80
|
-
const confirmationRequest = client.get(`api/v1/learningpaths/${id}/${version}`, {
|
|
81
|
-
headers: { authorization: token },
|
|
82
|
-
});
|
|
83
|
-
confirmationRequest
|
|
84
|
-
.then((response) => {
|
|
85
|
-
resolve(response.data);
|
|
86
|
-
})
|
|
87
|
-
.catch((error) => {
|
|
88
|
-
reject(error);
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Get learning path list
|
|
94
|
-
* @param {Array<String>} list The filter used to select the skill
|
|
95
|
-
* @param {String} version The version to be retrieved
|
|
96
|
-
* @param {boolean} includeDeleted When true it will return the deleted records as well
|
|
97
|
-
* @param {String} token Authorization token
|
|
98
|
-
* @returns {Promise<Array<Object>>} The list of available content
|
|
99
|
-
*/
|
|
100
|
-
export const getLearningPathsList = (list, version, includeDeleted, token) => {
|
|
101
|
-
return new Promise((resolve, reject) => {
|
|
102
|
-
const requestData = {
|
|
103
|
-
version: version,
|
|
104
|
-
includeDeleted: includeDeleted,
|
|
105
|
-
};
|
|
106
|
-
if (list)
|
|
107
|
-
requestData.list = list;
|
|
108
|
-
const confirmationRequest = client.post(`api/v1/learningpaths`, requestData, {
|
|
109
|
-
headers: { authorization: token },
|
|
110
|
-
});
|
|
111
|
-
confirmationRequest
|
|
112
|
-
.then((response) => {
|
|
113
|
-
resolve(response.data);
|
|
114
|
-
})
|
|
115
|
-
.catch((error) => {
|
|
116
|
-
reject(error);
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* Publish training plan template
|
|
122
|
-
* @param {String} id The id of the template to be published
|
|
123
|
-
* @param {String} comments The comments to be include with the request
|
|
124
|
-
* @param {String} token Authorization token
|
|
125
|
-
* @returns {Promise<object>}
|
|
126
|
-
*/
|
|
127
|
-
export const publishLearningPath = (id, comments, token) => {
|
|
128
|
-
return new Promise((resolve, reject) => {
|
|
129
|
-
const data = {};
|
|
130
|
-
if (comments)
|
|
131
|
-
data.comments = comments;
|
|
132
|
-
const confirmationRequest = client.post(`api/v1/learningpaths/publish/${id}`, data, {
|
|
133
|
-
headers: { authorization: token },
|
|
134
|
-
});
|
|
135
|
-
confirmationRequest
|
|
136
|
-
.then((response) => {
|
|
137
|
-
resolve(response.data);
|
|
138
|
-
})
|
|
139
|
-
.catch((error) => {
|
|
140
|
-
reject(error);
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* Set learning path profile information
|
|
146
|
-
* @param {String} id The id of the template to be updated
|
|
147
|
-
* @param {Object} data Data used to update the template
|
|
148
|
-
* @param {String} token Authorization token
|
|
149
|
-
* @returns {Promise<object>}
|
|
150
|
-
*/
|
|
151
|
-
export const setLearningPathInformation = (id, data, token) => {
|
|
152
|
-
return new Promise((resolve, reject) => {
|
|
153
|
-
const requestData = {
|
|
154
|
-
data: data,
|
|
155
|
-
id: id,
|
|
156
|
-
};
|
|
157
|
-
const confirmationRequest = client.post(`api/v1/learningpaths/update/`, requestData, {
|
|
158
|
-
headers: { authorization: token },
|
|
159
|
-
});
|
|
160
|
-
confirmationRequest
|
|
161
|
-
.then((response) => {
|
|
162
|
-
resolve(response.data);
|
|
163
|
-
})
|
|
164
|
-
.catch((error) => {
|
|
165
|
-
reject(error);
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Update learning path tags
|
|
171
|
-
* @param {String} id The id of the template to be updated
|
|
172
|
-
* @param {Object} tags The updated tags
|
|
173
|
-
* @param {String} token Authorization token
|
|
174
|
-
* @returns {Promise<object>}
|
|
175
|
-
*/
|
|
176
|
-
export const setLearningPathTags = (id, tags, token) => {
|
|
177
|
-
return new Promise((resolve, reject) => {
|
|
178
|
-
const requestData = {
|
|
179
|
-
tags: tags,
|
|
180
|
-
id: id,
|
|
181
|
-
};
|
|
182
|
-
const confirmationRequest = client.post(`api/v1/learningpaths/updatetags/`, requestData, {
|
|
183
|
-
headers: { authorization: token },
|
|
184
|
-
});
|
|
185
|
-
confirmationRequest
|
|
186
|
-
.then((response) => {
|
|
187
|
-
resolve(response.data);
|
|
188
|
-
})
|
|
189
|
-
.catch((error) => {
|
|
190
|
-
reject(error);
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
//# sourceMappingURL=learningPath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"learningPath.js","sourceRoot":"","sources":["../../src/lib/learningPath.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAYvC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,KAAa,EAAmB,EAAE;IACjF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CACpC,sBAAsB,EACtB,EAAE,IAAI,EAAE,IAAI,EAAE,EACd;YACE,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;SAClC,CACF,CAAC;QACF,mBAAmB;aAChB,IAAI,CAAC,CAAC,QAAwB,EAAE,EAAE;YACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAkB,EAAE,EAAE;YAC5B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;;GAMG;AACH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KAAK,EAAE;SAClC,CACF,CAAC;QACF,mBAAmB;aAChB,IAAI,CAAC,CAAC,QAAwB,EAAE,EAAE;YACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAkB,EAAE,EAAE;YAC5B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAU,EAAE,IAAY,EAAE,KAAa,EAAmB,EAAE;IAC9F,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,WAAW,GAAqB;YACpC,IAAI,EAAE,IAAI;YACV,EAAE,EAAE,EAAE;SACP,CAAC;QACF,MAAM,mBAAmB,GAAG,MAAM,CAAC,IAAI,CACrC,kCAAkC,EAClC,WAAW,EACX;YACE,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;SAClC,CACF,CAAC;QACF,mBAAmB;aAChB,IAAI,CAAC,CAAC,QAAwB,EAAE,EAAE;YACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAkB,EAAE,EAAE;YAC5B,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/dist/esm/logger.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create comments for a specified element id
|
|
3
|
-
* @param {String} elementId
|
|
4
|
-
* @param {String} elementType
|
|
5
|
-
* @param {Object} data
|
|
6
|
-
* @param {String} token Authorization token
|
|
7
|
-
* @returns {Promise<object>}
|
|
8
|
-
*/
|
|
9
|
-
export declare const comments: (elementId: string, elementType: string, data: object, token: string) => Promise<object>;
|
|
10
|
-
/**
|
|
11
|
-
* Get the list of logger entries for selected element
|
|
12
|
-
* @param {String} elementId
|
|
13
|
-
* @param {Number} page The results page
|
|
14
|
-
* @param {Number} elementsPerPage The number of elements per page
|
|
15
|
-
* @param {String} token
|
|
16
|
-
* @returns {Promise<object>}
|
|
17
|
-
*/
|
|
18
|
-
export declare const getListByElementId: (elementId: string, page: number | null, elementsPerPage: number | null, token: string) => Promise<object>;
|
|
19
|
-
//# sourceMappingURL=logger.d.ts.map
|