@stackfactor/client-api 1.1.74 → 1.1.75
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/actionNotifications.js +2 -3
- package/lib/address.js +1 -1
- package/lib/aiAssistant.js +0 -4
- package/lib/avatar.js +0 -1
- package/lib/axiosClient.js +2 -0
- package/lib/config.js +3 -3
- package/lib/dashboard.js +2 -3
- package/lib/departmentTrainingPlans.js +1 -6
- package/lib/groups.js +7 -12
- package/lib/integration.js +0 -10
- package/lib/integrationConfiguration.js +0 -3
- package/lib/integrations/contentGenerator.js +0 -2
- package/lib/learningContent.js +2 -14
- package/lib/learningPath.js +2 -8
- package/lib/logger.js +0 -2
- package/lib/microSkillsQuizes.js +0 -2
- package/lib/role.js +2 -14
- package/lib/roleTemplate.js +2 -9
- package/lib/skill.js +2 -18
- package/lib/skillAssessmentTestingSession.js +0 -5
- package/lib/skillAssessments.js +1 -5
- package/lib/skillTemplate.js +2 -11
- package/lib/talentTransfromation.js +1 -3
- package/lib/teams.js +9 -11
- package/lib/tenants.js +0 -2
- package/lib/trainingPlans.js +1 -12
- package/lib/trainingPlansProficiencyLevels.js +0 -4
- package/lib/userInformation.js +0 -3
- package/lib/users.js +3 -18
- package/package.json +1 -1
|
@@ -8,7 +8,6 @@ const getAllUserNotifications = (token) => {
|
|
|
8
8
|
return new Promise(function (resolve, reject) {
|
|
9
9
|
const request = client.get(`api/v1/actionnotifications`, {
|
|
10
10
|
headers: { authorization: token },
|
|
11
|
-
withCredentials: true,
|
|
12
11
|
});
|
|
13
12
|
request
|
|
14
13
|
.then((response) => {
|
|
@@ -34,7 +33,7 @@ const markNotifications = (ids, status, authToken) => {
|
|
|
34
33
|
ids: ids,
|
|
35
34
|
status: status,
|
|
36
35
|
},
|
|
37
|
-
{ headers: { authorization: authToken }
|
|
36
|
+
{ headers: { authorization: authToken } }
|
|
38
37
|
);
|
|
39
38
|
request
|
|
40
39
|
.then((response) => {
|
|
@@ -62,7 +61,7 @@ const processNotification = (id, action, comments, authToken) => {
|
|
|
62
61
|
action: action,
|
|
63
62
|
comments: comments,
|
|
64
63
|
},
|
|
65
|
-
{ headers: { authorization: authToken }
|
|
64
|
+
{ headers: { authorization: authToken } }
|
|
66
65
|
);
|
|
67
66
|
request
|
|
68
67
|
.then((response) => {
|
package/lib/address.js
CHANGED
|
@@ -10,7 +10,7 @@ const autoComplete = (input, authToken) => {
|
|
|
10
10
|
const getAddressesRequest = client.post(
|
|
11
11
|
`api/v1/address/autocomplete/`,
|
|
12
12
|
{ input: input },
|
|
13
|
-
{ headers: { authorization: authToken }
|
|
13
|
+
{ headers: { authorization: authToken } }
|
|
14
14
|
);
|
|
15
15
|
getAddressesRequest
|
|
16
16
|
.then((response) => {
|
package/lib/aiAssistant.js
CHANGED
|
@@ -20,7 +20,6 @@ const askQuestion = (conversationId, question, updatedContext, token) => {
|
|
|
20
20
|
data,
|
|
21
21
|
{
|
|
22
22
|
headers: { authorization: token },
|
|
23
|
-
withCredentials: true,
|
|
24
23
|
}
|
|
25
24
|
);
|
|
26
25
|
confirmationRequest
|
|
@@ -49,7 +48,6 @@ const endConversation = (conversationId, token) => {
|
|
|
49
48
|
data,
|
|
50
49
|
{
|
|
51
50
|
headers: { authorization: token },
|
|
52
|
-
withCredentials: true,
|
|
53
51
|
}
|
|
54
52
|
);
|
|
55
53
|
confirmationRequest
|
|
@@ -74,7 +72,6 @@ const getConversationByElementId = (elementId, token) => {
|
|
|
74
72
|
`/api/v1/aiassistant/getconversation/${elementId}`,
|
|
75
73
|
{
|
|
76
74
|
headers: { authorization: token },
|
|
77
|
-
withCredentials: true,
|
|
78
75
|
}
|
|
79
76
|
);
|
|
80
77
|
confirmationRequest
|
|
@@ -122,7 +119,6 @@ const startConversation = (
|
|
|
122
119
|
data,
|
|
123
120
|
{
|
|
124
121
|
headers: { authorization: token },
|
|
125
|
-
withCredentials: true,
|
|
126
122
|
}
|
|
127
123
|
);
|
|
128
124
|
confirmationRequest
|
package/lib/avatar.js
CHANGED
package/lib/axiosClient.js
CHANGED
package/lib/config.js
CHANGED
|
@@ -9,7 +9,7 @@ const getConfigurationById = (id, authToken) => {
|
|
|
9
9
|
return new Promise(function (resolve, reject) {
|
|
10
10
|
const getConfigInformationRequest = client.get(
|
|
11
11
|
`api/v1/configurations/configuration/id/${id}`,
|
|
12
|
-
{ headers: { authorization: authToken }
|
|
12
|
+
{ headers: { authorization: authToken } }
|
|
13
13
|
);
|
|
14
14
|
getConfigInformationRequest
|
|
15
15
|
.then((response) => {
|
|
@@ -30,7 +30,7 @@ const getConfigurationByType = (type, authToken) => {
|
|
|
30
30
|
return new Promise(function (resolve, reject) {
|
|
31
31
|
const getConfigInformationRequest = client.get(
|
|
32
32
|
`api/v1/configurations/configuration/type/${type}`,
|
|
33
|
-
{ headers: { authorization: authToken }
|
|
33
|
+
{ headers: { authorization: authToken } }
|
|
34
34
|
);
|
|
35
35
|
getConfigInformationRequest
|
|
36
36
|
.then((response) => {
|
|
@@ -53,7 +53,7 @@ const setConfigurationById = (id, data, authToken) => {
|
|
|
53
53
|
const getConfigInformationRequest = client.post(
|
|
54
54
|
`api/v1/configurations/configuration/${id}`,
|
|
55
55
|
{ data: data },
|
|
56
|
-
{ headers: { authorization: authToken }
|
|
56
|
+
{ headers: { authorization: authToken } }
|
|
57
57
|
);
|
|
58
58
|
getConfigInformationRequest
|
|
59
59
|
.then((response) => {
|
package/lib/dashboard.js
CHANGED
|
@@ -16,7 +16,7 @@ const addCardToDashboard = (id, position, data, authToken) => {
|
|
|
16
16
|
position: position,
|
|
17
17
|
data: data || {},
|
|
18
18
|
},
|
|
19
|
-
{ headers: { authorization: authToken }
|
|
19
|
+
{ headers: { authorization: authToken } }
|
|
20
20
|
);
|
|
21
21
|
request
|
|
22
22
|
.then((response) => {
|
|
@@ -36,7 +36,6 @@ const getDashboardCardsList = (authToken) => {
|
|
|
36
36
|
return new Promise(function (resolve, reject) {
|
|
37
37
|
const request = client.get(`/api/v1/dashboard/card`, {
|
|
38
38
|
headers: { authorization: authToken },
|
|
39
|
-
withCredentials: true,
|
|
40
39
|
});
|
|
41
40
|
request
|
|
42
41
|
.then((response) => {
|
|
@@ -57,7 +56,7 @@ const removeCardFromDashboard = (id, authToken) => {
|
|
|
57
56
|
return new Promise(function (resolve, reject) {
|
|
58
57
|
const request = client.delete(`/api/v1/dashboard/card`, {
|
|
59
58
|
headers: { authorization: authToken },
|
|
60
|
-
|
|
59
|
+
|
|
61
60
|
data: {
|
|
62
61
|
id: id,
|
|
63
62
|
},
|
|
@@ -26,7 +26,6 @@ const createDepartmentTrainingPlan = (
|
|
|
26
26
|
requestData,
|
|
27
27
|
{
|
|
28
28
|
headers: { authorization: token },
|
|
29
|
-
withCredentials: true,
|
|
30
29
|
}
|
|
31
30
|
);
|
|
32
31
|
confirmationRequest
|
|
@@ -48,7 +47,7 @@ const deleteDepartmentTrainingPlan = (id, token) => {
|
|
|
48
47
|
return new Promise(function (resolve, reject) {
|
|
49
48
|
const request = client.delete(`api/v1/departmenttrainingplans/`, {
|
|
50
49
|
headers: { authorization: token },
|
|
51
|
-
|
|
50
|
+
|
|
52
51
|
data: {
|
|
53
52
|
id: id,
|
|
54
53
|
},
|
|
@@ -74,7 +73,6 @@ const getDepartmentTrainingPlanInformationById = (id, version, token) => {
|
|
|
74
73
|
`api/v1/departmenttrainingplans/${id}/${version}`,
|
|
75
74
|
{
|
|
76
75
|
headers: { authorization: token },
|
|
77
|
-
withCredentials: true,
|
|
78
76
|
}
|
|
79
77
|
);
|
|
80
78
|
confirmationRequest
|
|
@@ -103,7 +101,6 @@ const getDepartmentTrainingPlanList = (filter, version, token) => {
|
|
|
103
101
|
requestData,
|
|
104
102
|
{
|
|
105
103
|
headers: { authorization: token },
|
|
106
|
-
withCredentials: true,
|
|
107
104
|
}
|
|
108
105
|
);
|
|
109
106
|
confirmationRequest
|
|
@@ -128,7 +125,6 @@ const publishDepartmentTrainingPlan = (id, token) => {
|
|
|
128
125
|
{},
|
|
129
126
|
{
|
|
130
127
|
headers: { authorization: token },
|
|
131
|
-
withCredentials: true,
|
|
132
128
|
}
|
|
133
129
|
);
|
|
134
130
|
confirmationRequest
|
|
@@ -157,7 +153,6 @@ const setDepartmentTrainingPlanInformation = (id, data, token) => {
|
|
|
157
153
|
requestData,
|
|
158
154
|
{
|
|
159
155
|
headers: { authorization: token },
|
|
160
|
-
withCredentials: true,
|
|
161
156
|
}
|
|
162
157
|
);
|
|
163
158
|
confirmationRequest
|
package/lib/groups.js
CHANGED
|
@@ -14,7 +14,7 @@ const addPermissionsToGroup = (groupId, permissions, authToken) => {
|
|
|
14
14
|
groupId: groupId,
|
|
15
15
|
permissions: permissions,
|
|
16
16
|
},
|
|
17
|
-
{ headers: { authorization: authToken }
|
|
17
|
+
{ headers: { authorization: authToken } }
|
|
18
18
|
);
|
|
19
19
|
request
|
|
20
20
|
.then((response) => {
|
|
@@ -40,7 +40,7 @@ const addUsersToGroup = (groupId, users, authToken) => {
|
|
|
40
40
|
groupId: groupId,
|
|
41
41
|
users: users,
|
|
42
42
|
},
|
|
43
|
-
{ headers: { authorization: authToken }
|
|
43
|
+
{ headers: { authorization: authToken } }
|
|
44
44
|
);
|
|
45
45
|
request
|
|
46
46
|
.then((response) => {
|
|
@@ -66,7 +66,7 @@ const createGroup = (name, description, authToken) => {
|
|
|
66
66
|
name: name,
|
|
67
67
|
description: description,
|
|
68
68
|
},
|
|
69
|
-
{ headers: { authorization: authToken }
|
|
69
|
+
{ headers: { authorization: authToken } }
|
|
70
70
|
);
|
|
71
71
|
request
|
|
72
72
|
.then((response) => {
|
|
@@ -92,7 +92,6 @@ const deleteGroup = (groupId, defaultGroupId, authToken) => {
|
|
|
92
92
|
id: groupId,
|
|
93
93
|
defaultGroupId: defaultGroupId,
|
|
94
94
|
},
|
|
95
|
-
withCredentials: true,
|
|
96
95
|
});
|
|
97
96
|
request
|
|
98
97
|
.then((response) => {
|
|
@@ -112,7 +111,6 @@ const getAllPermissions = (authToken) => {
|
|
|
112
111
|
return new Promise(function (resolve, reject) {
|
|
113
112
|
const request = client.get(`api/v1/groups/permissions/getAllPermissions`, {
|
|
114
113
|
headers: { authorization: authToken },
|
|
115
|
-
withCredentials: true,
|
|
116
114
|
});
|
|
117
115
|
request
|
|
118
116
|
.then((response) => {
|
|
@@ -133,7 +131,6 @@ const getGroupById = (groupId, authToken) => {
|
|
|
133
131
|
return new Promise(function (resolve, reject) {
|
|
134
132
|
const request = client.get(`api/v1/groups/group/${groupId}`, {
|
|
135
133
|
headers: { authorization: authToken },
|
|
136
|
-
withCredentials: true,
|
|
137
134
|
});
|
|
138
135
|
request
|
|
139
136
|
.then((response) => {
|
|
@@ -153,7 +150,6 @@ const getGroups = (authToken) => {
|
|
|
153
150
|
return new Promise(function (resolve, reject) {
|
|
154
151
|
const request = client.get(`api/v1/groups/`, {
|
|
155
152
|
headers: { authorization: authToken },
|
|
156
|
-
withCredentials: true,
|
|
157
153
|
});
|
|
158
154
|
request
|
|
159
155
|
.then((response) => {
|
|
@@ -173,7 +169,6 @@ const getUserPermissions = (authToken) => {
|
|
|
173
169
|
return new Promise(function (resolve, reject) {
|
|
174
170
|
const request = client.get(`api/v1/groups/users/getuserpermissions`, {
|
|
175
171
|
headers: { authorization: authToken },
|
|
176
|
-
withCredentials: true,
|
|
177
172
|
});
|
|
178
173
|
request
|
|
179
174
|
.then((response) => {
|
|
@@ -199,7 +194,7 @@ const removePermissionsFromGroup = (groupId, permissions, authToken) => {
|
|
|
199
194
|
groupId: groupId,
|
|
200
195
|
permissions: permissions,
|
|
201
196
|
},
|
|
202
|
-
{ headers: { authorization: authToken }
|
|
197
|
+
{ headers: { authorization: authToken } }
|
|
203
198
|
);
|
|
204
199
|
request
|
|
205
200
|
.then((response) => {
|
|
@@ -225,7 +220,7 @@ const removeUsersFromGroup = (groupId, users, authToken) => {
|
|
|
225
220
|
groupId: groupId,
|
|
226
221
|
users: users,
|
|
227
222
|
},
|
|
228
|
-
{ headers: { authorization: authToken }
|
|
223
|
+
{ headers: { authorization: authToken } }
|
|
229
224
|
);
|
|
230
225
|
request
|
|
231
226
|
.then((response) => {
|
|
@@ -249,7 +244,7 @@ const setDefault = (groupId, authToken) => {
|
|
|
249
244
|
{
|
|
250
245
|
id: groupId,
|
|
251
246
|
},
|
|
252
|
-
{ headers: { authorization: authToken }
|
|
247
|
+
{ headers: { authorization: authToken } }
|
|
253
248
|
);
|
|
254
249
|
request
|
|
255
250
|
.then((response) => {
|
|
@@ -277,7 +272,7 @@ const updateGroup = (groupId, name, description, authToken) => {
|
|
|
277
272
|
name: name,
|
|
278
273
|
description: description,
|
|
279
274
|
},
|
|
280
|
-
{ headers: { authorization: authToken }
|
|
275
|
+
{ headers: { authorization: authToken } }
|
|
281
276
|
);
|
|
282
277
|
request
|
|
283
278
|
.then((response) => {
|
package/lib/integration.js
CHANGED
|
@@ -15,7 +15,6 @@ export const createIntegration = (data, token) => {
|
|
|
15
15
|
};
|
|
16
16
|
let confirmationRequest = client.put("api/v1/integrations/", requestData, {
|
|
17
17
|
headers: { authorization: token },
|
|
18
|
-
withCredentials: true,
|
|
19
18
|
});
|
|
20
19
|
confirmationRequest
|
|
21
20
|
.then((response) => {
|
|
@@ -39,7 +38,6 @@ export const deleteIntegration = (id, token) => {
|
|
|
39
38
|
data: {
|
|
40
39
|
id: id,
|
|
41
40
|
},
|
|
42
|
-
withCredentials: true,
|
|
43
41
|
});
|
|
44
42
|
request
|
|
45
43
|
.then((response) => {
|
|
@@ -62,7 +60,6 @@ export const discardIntegrationChanges = (id, token) => {
|
|
|
62
60
|
const request = client.get(`api/v1/integrations/discard/${id}`, {
|
|
63
61
|
headers: { authorization: token },
|
|
64
62
|
data: data,
|
|
65
|
-
withCredentials: true,
|
|
66
63
|
});
|
|
67
64
|
request
|
|
68
65
|
.then((response) => {
|
|
@@ -86,7 +83,6 @@ export const getIntegrationInformationById = (id, version, token) => {
|
|
|
86
83
|
`api/v1/integrations/${id}/${version}`,
|
|
87
84
|
{
|
|
88
85
|
headers: { authorization: token },
|
|
89
|
-
withCredentials: true,
|
|
90
86
|
}
|
|
91
87
|
);
|
|
92
88
|
confirmationRequest
|
|
@@ -123,7 +119,6 @@ export const getIntegrationsList = (
|
|
|
123
119
|
if (type) requestData.type = type;
|
|
124
120
|
let confirmationRequest = client.post(`api/v1/integrations`, requestData, {
|
|
125
121
|
headers: { authorization: token },
|
|
126
|
-
withCredentials: true,
|
|
127
122
|
});
|
|
128
123
|
confirmationRequest
|
|
129
124
|
.then((response) => {
|
|
@@ -152,7 +147,6 @@ export const getContentInformationByUrl = (url, verb, token) => {
|
|
|
152
147
|
requestData,
|
|
153
148
|
{
|
|
154
149
|
headers: { authorization: token },
|
|
155
|
-
withCredentials: true,
|
|
156
150
|
}
|
|
157
151
|
);
|
|
158
152
|
confirmationRequest
|
|
@@ -253,7 +247,6 @@ export const getEnabledContentProviders = (userId, token) => {
|
|
|
253
247
|
`api/v1/contentproviders/getenabledcontentproviders/${userId}`,
|
|
254
248
|
{
|
|
255
249
|
headers: { authorization: token },
|
|
256
|
-
withCredentials: true,
|
|
257
250
|
}
|
|
258
251
|
);
|
|
259
252
|
confirmationRequest
|
|
@@ -278,7 +271,6 @@ export const publishIntegration = (id, token) => {
|
|
|
278
271
|
{},
|
|
279
272
|
{
|
|
280
273
|
headers: { authorization: token },
|
|
281
|
-
withCredentials: true,
|
|
282
274
|
}
|
|
283
275
|
);
|
|
284
276
|
confirmationRequest
|
|
@@ -307,7 +299,6 @@ export const setIntegrationInformation = (id, data, token) => {
|
|
|
307
299
|
requestData,
|
|
308
300
|
{
|
|
309
301
|
headers: { authorization: token },
|
|
310
|
-
withCredentials: true,
|
|
311
302
|
}
|
|
312
303
|
);
|
|
313
304
|
confirmationRequest
|
|
@@ -332,7 +323,6 @@ export const setDefaultIntegration = (id, token) => {
|
|
|
332
323
|
"",
|
|
333
324
|
{
|
|
334
325
|
headers: { authorization: token },
|
|
335
|
-
withCredentials: true,
|
|
336
326
|
}
|
|
337
327
|
);
|
|
338
328
|
confirmationRequest
|
|
@@ -15,7 +15,6 @@ const getIntegrationsConfiguration = (ids, type, token) => {
|
|
|
15
15
|
requestData,
|
|
16
16
|
{
|
|
17
17
|
headers: { authorization: token },
|
|
18
|
-
withCredentials: true,
|
|
19
18
|
}
|
|
20
19
|
);
|
|
21
20
|
confirmationRequest
|
|
@@ -47,7 +46,6 @@ const saveIntegrationConfiguration = (id, type, configuration, token) => {
|
|
|
47
46
|
requestData,
|
|
48
47
|
{
|
|
49
48
|
headers: { authorization: token },
|
|
50
|
-
withCredentials: true,
|
|
51
49
|
}
|
|
52
50
|
);
|
|
53
51
|
confirmationRequest
|
|
@@ -79,7 +77,6 @@ const testIntegrationConfiguration = (id, type, configuration, token) => {
|
|
|
79
77
|
requestData,
|
|
80
78
|
{
|
|
81
79
|
headers: { authorization: token },
|
|
82
|
-
withCredentials: true,
|
|
83
80
|
}
|
|
84
81
|
);
|
|
85
82
|
confirmationRequest
|
|
@@ -17,7 +17,6 @@ export const generateContent = (data, contentType, integrationId, token) => {
|
|
|
17
17
|
if (integrationId) data.integrationId = integrationId;
|
|
18
18
|
const request = client.post(`api/v1/contentgenerators/generate`, data_, {
|
|
19
19
|
headers: { authorization: token },
|
|
20
|
-
withCredentials: true,
|
|
21
20
|
});
|
|
22
21
|
request
|
|
23
22
|
.then((response) => {
|
|
@@ -63,7 +62,6 @@ export const generateContentAsync = (
|
|
|
63
62
|
data_,
|
|
64
63
|
{
|
|
65
64
|
headers: { authorization: token },
|
|
66
|
-
withCredentials: true,
|
|
67
65
|
}
|
|
68
66
|
);
|
|
69
67
|
request
|
package/lib/learningContent.js
CHANGED
|
@@ -16,7 +16,6 @@ const createLearningContent = (data, token) => {
|
|
|
16
16
|
requestData,
|
|
17
17
|
{
|
|
18
18
|
headers: { authorization: token },
|
|
19
|
-
withCredentials: true,
|
|
20
19
|
}
|
|
21
20
|
);
|
|
22
21
|
confirmationRequest
|
|
@@ -44,7 +43,7 @@ const deleteLearningContent = (id, comments, token) => {
|
|
|
44
43
|
return new Promise(function (resolve, reject) {
|
|
45
44
|
const request = client.delete(`api/v1/learningcontent/`, {
|
|
46
45
|
headers: { authorization: token },
|
|
47
|
-
|
|
46
|
+
|
|
48
47
|
data: data,
|
|
49
48
|
});
|
|
50
49
|
request
|
|
@@ -68,7 +67,7 @@ const discardLearningContentChanges = (id, token) => {
|
|
|
68
67
|
const data = {};
|
|
69
68
|
const request = client.get(`api/v1/learningcontent/discard/${id}`, {
|
|
70
69
|
headers: { authorization: token },
|
|
71
|
-
|
|
70
|
+
|
|
72
71
|
data: data,
|
|
73
72
|
});
|
|
74
73
|
request
|
|
@@ -115,7 +114,6 @@ const generateLearningActivityContent = (
|
|
|
115
114
|
requestData,
|
|
116
115
|
{
|
|
117
116
|
headers: { authorization: token },
|
|
118
|
-
withCredentials: true,
|
|
119
117
|
}
|
|
120
118
|
);
|
|
121
119
|
request
|
|
@@ -144,7 +142,6 @@ const generateMicroSkillTestKnowledge = (microSkill, token) => {
|
|
|
144
142
|
data,
|
|
145
143
|
{
|
|
146
144
|
headers: { authorization: token },
|
|
147
|
-
withCredentials: true,
|
|
148
145
|
}
|
|
149
146
|
);
|
|
150
147
|
confirmationRequest
|
|
@@ -170,7 +167,6 @@ const getLearningContentInformationById = (id, version, token) => {
|
|
|
170
167
|
`api/v1/learningcontent/${id}/${version}`,
|
|
171
168
|
{
|
|
172
169
|
headers: { authorization: token },
|
|
173
|
-
withCredentials: true,
|
|
174
170
|
}
|
|
175
171
|
);
|
|
176
172
|
confirmationRequest
|
|
@@ -203,7 +199,6 @@ const getLearningContentList = (filter, version, includeDeleted, token) => {
|
|
|
203
199
|
requestData,
|
|
204
200
|
{
|
|
205
201
|
headers: { authorization: token },
|
|
206
|
-
withCredentials: true,
|
|
207
202
|
}
|
|
208
203
|
);
|
|
209
204
|
confirmationRequest
|
|
@@ -233,7 +228,6 @@ const publishLearningContent = (id, comments, token) => {
|
|
|
233
228
|
data,
|
|
234
229
|
{
|
|
235
230
|
headers: { authorization: token },
|
|
236
|
-
withCredentials: true,
|
|
237
231
|
}
|
|
238
232
|
);
|
|
239
233
|
confirmationRequest
|
|
@@ -264,7 +258,6 @@ const setLearningContentInformation = (id, data, token) => {
|
|
|
264
258
|
requestData,
|
|
265
259
|
{
|
|
266
260
|
headers: { authorization: token },
|
|
267
|
-
withCredentials: true,
|
|
268
261
|
}
|
|
269
262
|
);
|
|
270
263
|
confirmationRequest
|
|
@@ -295,7 +288,6 @@ const setLearningContentPartialContentInformation = (id, data, token) => {
|
|
|
295
288
|
requestData,
|
|
296
289
|
{
|
|
297
290
|
headers: { authorization: token },
|
|
298
|
-
withCredentials: true,
|
|
299
291
|
}
|
|
300
292
|
);
|
|
301
293
|
confirmationRequest
|
|
@@ -336,7 +328,6 @@ const setLearningContentLearningContentInformation = (
|
|
|
336
328
|
requestData,
|
|
337
329
|
{
|
|
338
330
|
headers: { authorization: token },
|
|
339
|
-
withCredentials: true,
|
|
340
331
|
}
|
|
341
332
|
);
|
|
342
333
|
confirmationRequest
|
|
@@ -372,7 +363,6 @@ const setLearningContentLearningMicroSkillContentInformation = (
|
|
|
372
363
|
requestData,
|
|
373
364
|
{
|
|
374
365
|
headers: { authorization: token },
|
|
375
|
-
withCredentials: true,
|
|
376
366
|
}
|
|
377
367
|
);
|
|
378
368
|
confirmationRequest
|
|
@@ -402,7 +392,6 @@ const setLearningContentTags = (id, tags, token) => {
|
|
|
402
392
|
requestData,
|
|
403
393
|
{
|
|
404
394
|
headers: { authorization: token },
|
|
405
|
-
withCredentials: true,
|
|
406
395
|
}
|
|
407
396
|
);
|
|
408
397
|
confirmationRequest
|
|
@@ -432,7 +421,6 @@ const watchLearningContent = (id, watch, token) => {
|
|
|
432
421
|
requestData,
|
|
433
422
|
{
|
|
434
423
|
headers: { authorization: token },
|
|
435
|
-
withCredentials: true,
|
|
436
424
|
}
|
|
437
425
|
);
|
|
438
426
|
confirmationRequest
|
package/lib/learningPath.js
CHANGED
|
@@ -12,7 +12,6 @@ const createLearningPath = (data, token) => {
|
|
|
12
12
|
{ data: data },
|
|
13
13
|
{
|
|
14
14
|
headers: { authorization: token },
|
|
15
|
-
withCredentials: true,
|
|
16
15
|
}
|
|
17
16
|
);
|
|
18
17
|
confirmationRequest
|
|
@@ -39,7 +38,7 @@ const deleteLearningPath = (id, comments, token) => {
|
|
|
39
38
|
if (comments) data.comments = comments;
|
|
40
39
|
const request = client.delete(`api/v1/learningpaths/`, {
|
|
41
40
|
headers: { authorization: token },
|
|
42
|
-
|
|
41
|
+
|
|
43
42
|
data: data,
|
|
44
43
|
});
|
|
45
44
|
request
|
|
@@ -62,7 +61,7 @@ const discardLearningPathChanges = (id, token) => {
|
|
|
62
61
|
const data = {};
|
|
63
62
|
const request = client.get(`api/v1/learningpaths/discard/${id}`, {
|
|
64
63
|
headers: { authorization: token },
|
|
65
|
-
|
|
64
|
+
|
|
66
65
|
data: data,
|
|
67
66
|
});
|
|
68
67
|
request
|
|
@@ -86,7 +85,6 @@ const getLearningPathInformationById = (id, version, token) => {
|
|
|
86
85
|
`api/v1/learningpaths/${id}/${version}`,
|
|
87
86
|
{
|
|
88
87
|
headers: { authorization: token },
|
|
89
|
-
withCredentials: true,
|
|
90
88
|
}
|
|
91
89
|
);
|
|
92
90
|
confirmationRequest
|
|
@@ -114,7 +112,6 @@ const getLearningPathsList = (list, version, includeDeleted, token) => {
|
|
|
114
112
|
if (list) requestData.list = list;
|
|
115
113
|
let confirmationRequest = client.post(`api/v1/learningpaths`, requestData, {
|
|
116
114
|
headers: { authorization: token },
|
|
117
|
-
withCredentials: true,
|
|
118
115
|
});
|
|
119
116
|
confirmationRequest
|
|
120
117
|
.then((response) => {
|
|
@@ -141,7 +138,6 @@ const publishLearningPath = (id, comments, token) => {
|
|
|
141
138
|
data,
|
|
142
139
|
{
|
|
143
140
|
headers: { authorization: token },
|
|
144
|
-
withCredentials: true,
|
|
145
141
|
}
|
|
146
142
|
);
|
|
147
143
|
confirmationRequest
|
|
@@ -171,7 +167,6 @@ const setLearningPathInformation = (id, data, token) => {
|
|
|
171
167
|
requestData,
|
|
172
168
|
{
|
|
173
169
|
headers: { authorization: token },
|
|
174
|
-
withCredentials: true,
|
|
175
170
|
}
|
|
176
171
|
);
|
|
177
172
|
confirmationRequest
|
|
@@ -201,7 +196,6 @@ const setLearningPathTags = (id, tags, token) => {
|
|
|
201
196
|
requestData,
|
|
202
197
|
{
|
|
203
198
|
headers: { authorization: token },
|
|
204
|
-
withCredentials: true,
|
|
205
199
|
}
|
|
206
200
|
);
|
|
207
201
|
confirmationRequest
|
package/lib/logger.js
CHANGED
|
@@ -18,7 +18,6 @@ const comments = (elementId, elementType, data, token) => {
|
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
headers: { authorization: token },
|
|
21
|
-
withCredentials: true,
|
|
22
21
|
}
|
|
23
22
|
);
|
|
24
23
|
confirmationRequest
|
|
@@ -45,7 +44,6 @@ const getListByElementId = (elementId, page, elementsPerPage, token) => {
|
|
|
45
44
|
if (page !== null) data.page = page;
|
|
46
45
|
const getTokensRequest = client.post(`api/v1/logger/${elementId}`, data, {
|
|
47
46
|
headers: { authorization: token },
|
|
48
|
-
withCredentials: true,
|
|
49
47
|
});
|
|
50
48
|
getTokensRequest
|
|
51
49
|
.then((result) => {
|
package/lib/microSkillsQuizes.js
CHANGED
|
@@ -13,7 +13,6 @@ const getResponses = (learningContentId, microSkillId, token) => {
|
|
|
13
13
|
`api/v1/microskillsresponses/${learningContentId}/${microSkillId}`,
|
|
14
14
|
{
|
|
15
15
|
headers: { authorization: token },
|
|
16
|
-
withCredentials: true,
|
|
17
16
|
}
|
|
18
17
|
);
|
|
19
18
|
confirmationRequest
|
|
@@ -44,7 +43,6 @@ const saveResponses = (learningContentId, microSkillId, responses, token) => {
|
|
|
44
43
|
data,
|
|
45
44
|
{
|
|
46
45
|
headers: { authorization: token },
|
|
47
|
-
withCredentials: true,
|
|
48
46
|
}
|
|
49
47
|
);
|
|
50
48
|
confirmationRequest
|