@stackfactor/client-api 1.0.56 → 1.0.58
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/exports.js +3 -2
- package/lib/actionNotifications.js +3 -1
- package/lib/address.js +3 -3
- package/lib/axiosClient.js +6 -6
- package/lib/config.js +6 -4
- package/lib/constants.js +1 -5
- package/lib/dashboard.js +6 -4
- package/lib/departmentTrainingPlans.js +9 -8
- package/lib/groups.js +15 -13
- package/lib/integration.js +14 -12
- package/lib/integrationConfiguration.js +6 -4
- package/lib/integrations/contentGenerator.js +3 -4
- package/lib/learningContent.js +13 -11
- package/lib/logger.js +3 -4
- package/lib/role.js +13 -11
- package/lib/roleTemplate.js +13 -11
- package/lib/skill.js +16 -14
- package/lib/skillAssessmentTestingSession.js +8 -6
- package/lib/skillAssessments.js +8 -6
- package/lib/skillTemplate.js +13 -11
- package/lib/teams.js +14 -12
- package/lib/tenants.js +3 -4
- package/lib/trainingPlanTemplate.js +11 -10
- package/lib/trainingPlans.js +12 -10
- package/lib/userInformation.js +6 -4
- package/lib/users.js +26 -24
- package/lib/utils.js +3 -5
- package/package.json +1 -1
package/exports.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import actionNotifications from "./lib/actionNotifications.js";
|
|
2
|
-
export { actionNotifications };
|
|
3
2
|
import {
|
|
4
3
|
client,
|
|
5
4
|
errorToString,
|
|
@@ -35,7 +34,7 @@ import trainingPlan from "./lib/trainingPlans.js";
|
|
|
35
34
|
import userInformation from "./lib/userInformation.js";
|
|
36
35
|
import users from "./lib/users.js";
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
const exports = {
|
|
39
38
|
actionNotifications,
|
|
40
39
|
address,
|
|
41
40
|
client,
|
|
@@ -68,3 +67,5 @@ export {
|
|
|
68
67
|
userInformation,
|
|
69
68
|
users,
|
|
70
69
|
};
|
|
70
|
+
|
|
71
|
+
export default exports;
|
|
@@ -73,8 +73,10 @@ export const processNotification = (id, action, comment, authToken) => {
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
const actionNotifications = {
|
|
77
77
|
getAllUserNotifications,
|
|
78
78
|
markNotifications,
|
|
79
79
|
processNotification,
|
|
80
80
|
};
|
|
81
|
+
|
|
82
|
+
export default actionNotifications;
|
package/lib/address.js
CHANGED
package/lib/axiosClient.js
CHANGED
|
@@ -75,10 +75,10 @@ export const shouldReturnError = (returnAllExceptions, error) => {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
export
|
|
79
|
-
client
|
|
80
|
-
errorToString
|
|
81
|
-
getErrorType
|
|
82
|
-
getErrorInformation
|
|
83
|
-
shouldReturnError
|
|
78
|
+
export {
|
|
79
|
+
client,
|
|
80
|
+
errorToString,
|
|
81
|
+
getErrorType,
|
|
82
|
+
getErrorInformation,
|
|
83
|
+
shouldReturnError,
|
|
84
84
|
};
|
package/lib/config.js
CHANGED
|
@@ -65,8 +65,10 @@ export const setConfigurationById = (id, data, authToken) => {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
getConfigurationById
|
|
70
|
-
getConfigurationByType
|
|
71
|
-
setConfigurationById
|
|
68
|
+
const config = {
|
|
69
|
+
getConfigurationById,
|
|
70
|
+
getConfigurationByType,
|
|
71
|
+
setConfigurationById,
|
|
72
72
|
};
|
|
73
|
+
|
|
74
|
+
export default config;
|
package/lib/constants.js
CHANGED
|
@@ -93,8 +93,4 @@ const PERMISSIONS = {
|
|
|
93
93
|
MANAGE_PLAN_TEMPLATES: "5dd61305a73c68b44c3f0827",
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
export
|
|
97
|
-
DOCUMENT_VERSION: DOCUMENT_VERSION,
|
|
98
|
-
PERMISSIONS: PERMISSIONS,
|
|
99
|
-
RESPONSE_TYPE: RESPONSE_TYPE,
|
|
100
|
-
};
|
|
96
|
+
export { DOCUMENT_VERSION, PERMISSIONS, RESPONSE_TYPE };
|
package/lib/dashboard.js
CHANGED
|
@@ -70,8 +70,10 @@ export const removeCardFromDashboard = (id, authToken) => {
|
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
addCardToDashboard
|
|
75
|
-
getDashboardCardsList
|
|
76
|
-
removeCardFromDashboard
|
|
73
|
+
const dashboard = {
|
|
74
|
+
addCardToDashboard,
|
|
75
|
+
getDashboardCardsList,
|
|
76
|
+
removeCardFromDashboard,
|
|
77
77
|
};
|
|
78
|
+
|
|
79
|
+
export default dashboard;
|
|
@@ -168,12 +168,13 @@ export const setDepartmentTrainingPlanInformation = (id, data, token) => {
|
|
|
168
168
|
});
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
-
|
|
172
|
-
createDepartmentTrainingPlan
|
|
173
|
-
deleteDepartmentTrainingPlan
|
|
174
|
-
getDepartmentTrainingPlanInformationById
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
setDepartmentTrainingPlanInformation: setDepartmentTrainingPlanInformation,
|
|
171
|
+
const departmentTraingPlans = {
|
|
172
|
+
createDepartmentTrainingPlan,
|
|
173
|
+
deleteDepartmentTrainingPlan,
|
|
174
|
+
getDepartmentTrainingPlanInformationById,
|
|
175
|
+
getDepartmentTrainingPlanList,
|
|
176
|
+
publishDepartmentTrainingPlan,
|
|
177
|
+
setDepartmentTrainingPlanInformation,
|
|
179
178
|
};
|
|
179
|
+
|
|
180
|
+
export default departmentTraingPlans;
|
package/lib/groups.js
CHANGED
|
@@ -284,17 +284,19 @@ export const updateGroup = (groupId, name, description, authToken) => {
|
|
|
284
284
|
});
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
|
|
288
|
-
addPermissionsToGroup
|
|
289
|
-
addUsersToGroup
|
|
290
|
-
createGroup
|
|
291
|
-
deleteGroup
|
|
292
|
-
getAllPermissions
|
|
293
|
-
getGroupById
|
|
294
|
-
getGroups
|
|
295
|
-
getUserPermissions
|
|
296
|
-
removePermissionsFromGroup
|
|
297
|
-
removeUsersFromGroup
|
|
298
|
-
setDefault
|
|
299
|
-
updateGroup
|
|
287
|
+
const groups = {
|
|
288
|
+
addPermissionsToGroup,
|
|
289
|
+
addUsersToGroup,
|
|
290
|
+
createGroup,
|
|
291
|
+
deleteGroup,
|
|
292
|
+
getAllPermissions,
|
|
293
|
+
getGroupById,
|
|
294
|
+
getGroups,
|
|
295
|
+
getUserPermissions,
|
|
296
|
+
removePermissionsFromGroup,
|
|
297
|
+
removeUsersFromGroup,
|
|
298
|
+
setDefault,
|
|
299
|
+
updateGroup,
|
|
300
300
|
};
|
|
301
|
+
|
|
302
|
+
export default groups;
|
package/lib/integration.js
CHANGED
|
@@ -335,16 +335,18 @@ export const setDefaultIntegration = (id, token) => {
|
|
|
335
335
|
});
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
|
|
339
|
-
createIntegration
|
|
340
|
-
deleteIntegration
|
|
341
|
-
discardIntegrationChanges
|
|
342
|
-
getContentInformationByUrl
|
|
343
|
-
getContentInformationByUrlFromBrowser
|
|
344
|
-
getEnabledContentProviders
|
|
345
|
-
getIntegrationInformationById
|
|
346
|
-
getIntegrationsList
|
|
347
|
-
publishIntegration
|
|
348
|
-
setDefaultIntegration
|
|
349
|
-
setIntegrationInformation
|
|
338
|
+
const integration = {
|
|
339
|
+
createIntegration,
|
|
340
|
+
deleteIntegration,
|
|
341
|
+
discardIntegrationChanges,
|
|
342
|
+
getContentInformationByUrl,
|
|
343
|
+
getContentInformationByUrlFromBrowser,
|
|
344
|
+
getEnabledContentProviders,
|
|
345
|
+
getIntegrationInformationById,
|
|
346
|
+
getIntegrationsList,
|
|
347
|
+
publishIntegration,
|
|
348
|
+
setDefaultIntegration,
|
|
349
|
+
setIntegrationInformation,
|
|
350
350
|
};
|
|
351
|
+
|
|
352
|
+
export default integration;
|
|
@@ -99,8 +99,10 @@ export const testIntegrationConfiguration = (
|
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
getIntegrationsConfiguration
|
|
104
|
-
saveIntegrationConfiguration
|
|
105
|
-
testIntegrationConfiguration
|
|
102
|
+
const integrationConfiguration = {
|
|
103
|
+
getIntegrationsConfiguration,
|
|
104
|
+
saveIntegrationConfiguration,
|
|
105
|
+
testIntegrationConfiguration,
|
|
106
106
|
};
|
|
107
|
+
|
|
108
|
+
export default integrationConfiguration;
|
|
@@ -74,7 +74,6 @@ export const generateContentAsync = (
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
};
|
|
77
|
+
const contentGenerator = { generateContent, generateContentAsync };
|
|
78
|
+
|
|
79
|
+
export default contentGenerator;
|
package/lib/learningContent.js
CHANGED
|
@@ -6,7 +6,7 @@ import { client } from "./axiosClient.js";
|
|
|
6
6
|
* @param {String} token Authorization token
|
|
7
7
|
* @returns {Promise<Object>} The created learning content
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
const createLearningContent = (data, token) => {
|
|
10
10
|
return new Promise(function (resolve, reject) {
|
|
11
11
|
const requestData = {
|
|
12
12
|
data: data,
|
|
@@ -257,14 +257,16 @@ export const watchLearningContent = (id, watch, token) => {
|
|
|
257
257
|
});
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
-
|
|
261
|
-
createLearningContent
|
|
262
|
-
deleteLearningContent
|
|
263
|
-
discardLearningContentChanges
|
|
264
|
-
getLearningContentInformationById
|
|
265
|
-
getLearningContentList
|
|
266
|
-
publishLearningContent
|
|
267
|
-
setLearningContentInformation
|
|
268
|
-
setLearningContentTags
|
|
269
|
-
watchLearningContent
|
|
260
|
+
const learningContent = {
|
|
261
|
+
createLearningContent,
|
|
262
|
+
deleteLearningContent,
|
|
263
|
+
discardLearningContentChanges,
|
|
264
|
+
getLearningContentInformationById,
|
|
265
|
+
getLearningContentList,
|
|
266
|
+
publishLearningContent,
|
|
267
|
+
setLearningContentInformation,
|
|
268
|
+
setLearningContentTags,
|
|
269
|
+
watchLearningContent,
|
|
270
270
|
};
|
|
271
|
+
|
|
272
|
+
export default learningContent;
|
package/lib/logger.js
CHANGED
|
@@ -55,7 +55,6 @@ export const getListByElementId = (elementId, page, elementsPerPage, token) => {
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
58
|
+
const logger = { comment, getListByElementId };
|
|
59
|
+
|
|
60
|
+
export default logger;
|
package/lib/role.js
CHANGED
|
@@ -258,15 +258,17 @@ export const watchRole = (id, watch, token) => {
|
|
|
258
258
|
});
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
|
|
262
|
-
createRole
|
|
263
|
-
createRoleFromTemplate
|
|
264
|
-
deleteRole
|
|
265
|
-
discardRoleChanges
|
|
266
|
-
getRoleInformationById
|
|
267
|
-
getRolesList
|
|
268
|
-
publishRole
|
|
269
|
-
setRoleInformation
|
|
270
|
-
setUserRoles
|
|
271
|
-
watchRole
|
|
261
|
+
const role = {
|
|
262
|
+
createRole,
|
|
263
|
+
createRoleFromTemplate,
|
|
264
|
+
deleteRole,
|
|
265
|
+
discardRoleChanges,
|
|
266
|
+
getRoleInformationById,
|
|
267
|
+
getRolesList,
|
|
268
|
+
publishRole,
|
|
269
|
+
setRoleInformation,
|
|
270
|
+
setUserRoles,
|
|
271
|
+
watchRole,
|
|
272
272
|
};
|
|
273
|
+
|
|
274
|
+
export default role;
|
package/lib/roleTemplate.js
CHANGED
|
@@ -263,15 +263,17 @@ export const watchRoleTemplate = (id, watch, token) => {
|
|
|
263
263
|
});
|
|
264
264
|
};
|
|
265
265
|
|
|
266
|
-
|
|
267
|
-
createRoleTemplate
|
|
268
|
-
deleteRoleTemplate
|
|
269
|
-
discardRoleTemplateChanges
|
|
270
|
-
getRoleTemplateInformationById
|
|
271
|
-
getRoleTemplateList
|
|
272
|
-
importRoleTemplates
|
|
273
|
-
publishTemplate
|
|
274
|
-
setTemplateInformation
|
|
275
|
-
setTemplateTags
|
|
276
|
-
watchRoleTemplate
|
|
266
|
+
const roleTemplate = {
|
|
267
|
+
createRoleTemplate,
|
|
268
|
+
deleteRoleTemplate,
|
|
269
|
+
discardRoleTemplateChanges,
|
|
270
|
+
getRoleTemplateInformationById,
|
|
271
|
+
getRoleTemplateList,
|
|
272
|
+
importRoleTemplates,
|
|
273
|
+
publishTemplate,
|
|
274
|
+
setTemplateInformation,
|
|
275
|
+
setTemplateTags,
|
|
276
|
+
watchRoleTemplate,
|
|
277
277
|
};
|
|
278
|
+
|
|
279
|
+
export default roleTemplate;
|
package/lib/skill.js
CHANGED
|
@@ -328,18 +328,20 @@ export const watchSkill = (id, watch, token) => {
|
|
|
328
328
|
});
|
|
329
329
|
};
|
|
330
330
|
|
|
331
|
-
|
|
332
|
-
createSkill
|
|
333
|
-
createSkillsFromTemplates
|
|
334
|
-
deleteSkill
|
|
335
|
-
discardSkillChanges
|
|
336
|
-
getSkillRelatedRoles
|
|
337
|
-
getSkillRequiredAssessmentType
|
|
338
|
-
getSkillInformationById
|
|
339
|
-
getSkillList
|
|
340
|
-
getTeamSkillsById
|
|
341
|
-
getCurrentUserTeamSkills
|
|
342
|
-
publishSkill
|
|
343
|
-
setSkillInformation
|
|
344
|
-
watchSkill
|
|
331
|
+
const skill = {
|
|
332
|
+
createSkill,
|
|
333
|
+
createSkillsFromTemplates,
|
|
334
|
+
deleteSkill,
|
|
335
|
+
discardSkillChanges,
|
|
336
|
+
getSkillRelatedRoles,
|
|
337
|
+
getSkillRequiredAssessmentType,
|
|
338
|
+
getSkillInformationById,
|
|
339
|
+
getSkillList,
|
|
340
|
+
getTeamSkillsById,
|
|
341
|
+
getCurrentUserTeamSkills,
|
|
342
|
+
publishSkill,
|
|
343
|
+
setSkillInformation,
|
|
344
|
+
watchSkill,
|
|
345
345
|
};
|
|
346
|
+
|
|
347
|
+
export default skill;
|
|
@@ -137,10 +137,12 @@ export const startSession = (skillId, saveSession, token) => {
|
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
endSession
|
|
142
|
-
getNextStep
|
|
143
|
-
getSkillTestAssessment
|
|
144
|
-
pause
|
|
145
|
-
startSession
|
|
140
|
+
const skillAessementTestingSession = {
|
|
141
|
+
endSession,
|
|
142
|
+
getNextStep,
|
|
143
|
+
getSkillTestAssessment,
|
|
144
|
+
pause,
|
|
145
|
+
startSession,
|
|
146
146
|
};
|
|
147
|
+
|
|
148
|
+
export default skillAessementTestingSession;
|
package/lib/skillAssessments.js
CHANGED
|
@@ -134,10 +134,12 @@ export const getList = (userId, token) => {
|
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
|
|
138
|
-
addEntry
|
|
139
|
-
create
|
|
140
|
-
deleteSkillAssessment
|
|
141
|
-
getById
|
|
142
|
-
getList
|
|
137
|
+
const skillAssessments = {
|
|
138
|
+
addEntry,
|
|
139
|
+
create,
|
|
140
|
+
deleteSkillAssessment,
|
|
141
|
+
getById,
|
|
142
|
+
getList,
|
|
143
143
|
};
|
|
144
|
+
|
|
145
|
+
export default skillAssessments;
|
package/lib/skillTemplate.js
CHANGED
|
@@ -270,15 +270,17 @@ export const watchSkillTemplate = (id, watch, token) => {
|
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
272
|
|
|
273
|
-
|
|
274
|
-
createSkillTemplate
|
|
275
|
-
deleteSkillTemplate
|
|
276
|
-
discardSkillTemplateChanges
|
|
277
|
-
getSkillTemplateInformationById
|
|
278
|
-
getSkillTemplateList
|
|
279
|
-
getTechnologyStacks
|
|
280
|
-
publishTemplate
|
|
281
|
-
setTemplateInformation
|
|
282
|
-
setTemplateTags
|
|
283
|
-
watchSkillTemplate
|
|
273
|
+
const skillTemplate = {
|
|
274
|
+
createSkillTemplate,
|
|
275
|
+
deleteSkillTemplate,
|
|
276
|
+
discardSkillTemplateChanges,
|
|
277
|
+
getSkillTemplateInformationById,
|
|
278
|
+
getSkillTemplateList,
|
|
279
|
+
getTechnologyStacks,
|
|
280
|
+
publishTemplate,
|
|
281
|
+
setTemplateInformation,
|
|
282
|
+
setTemplateTags,
|
|
283
|
+
watchSkillTemplate,
|
|
284
284
|
};
|
|
285
|
+
|
|
286
|
+
export default skillTemplate;
|
package/lib/teams.js
CHANGED
|
@@ -277,16 +277,18 @@ export const updateTeam = (teamId, data, authToken) => {
|
|
|
277
277
|
});
|
|
278
278
|
};
|
|
279
279
|
|
|
280
|
-
|
|
281
|
-
addUsersToTeam
|
|
282
|
-
createTeam
|
|
283
|
-
deleteTeam
|
|
284
|
-
getTeamById
|
|
285
|
-
getTeamByIdRoles
|
|
286
|
-
getTeams
|
|
287
|
-
getTeamByUserId
|
|
288
|
-
getTopTeam
|
|
289
|
-
removeUsersFromTeam
|
|
290
|
-
setDefault
|
|
291
|
-
updateTeam
|
|
280
|
+
const team = {
|
|
281
|
+
addUsersToTeam,
|
|
282
|
+
createTeam,
|
|
283
|
+
deleteTeam,
|
|
284
|
+
getTeamById,
|
|
285
|
+
getTeamByIdRoles,
|
|
286
|
+
getTeams,
|
|
287
|
+
getTeamByUserId,
|
|
288
|
+
getTopTeam,
|
|
289
|
+
removeUsersFromTeam,
|
|
290
|
+
setDefault,
|
|
291
|
+
updateTeam,
|
|
292
292
|
};
|
|
293
|
+
|
|
294
|
+
export default team;
|
package/lib/tenants.js
CHANGED
|
@@ -52,7 +52,6 @@ export const setTenantInformation = (category, data, token) => {
|
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
55
|
+
const tenant = { getTenantInformation, setTenantInformation };
|
|
56
|
+
|
|
57
|
+
export default tenant;
|
|
@@ -215,14 +215,15 @@ export const setTrainingPlanTemplateTags = (id, tags, token) => {
|
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
|
|
219
|
-
createTrainingPlanTemplate
|
|
220
|
-
deleteTrainingPlanTemplate
|
|
221
|
-
discardTrainingPlanChanges
|
|
222
|
-
getTrainingPlanTemplateInformationById
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
setTrainingPlanTemplateTags: setTrainingPlanTemplateTags,
|
|
218
|
+
const trainingPlanTemplate = {
|
|
219
|
+
createTrainingPlanTemplate,
|
|
220
|
+
deleteTrainingPlanTemplate,
|
|
221
|
+
discardTrainingPlanChanges,
|
|
222
|
+
getTrainingPlanTemplateInformationById,
|
|
223
|
+
getTrainingPlanTemplatesList,
|
|
224
|
+
publishTrainingPlanTemplate,
|
|
225
|
+
setTrainingPlanTemplateInformation,
|
|
226
|
+
setTrainingPlanTemplateTags,
|
|
228
227
|
};
|
|
228
|
+
|
|
229
|
+
export default trainingPlanTemplate;
|
package/lib/trainingPlans.js
CHANGED
|
@@ -264,14 +264,16 @@ export const updateActivities = (planId, data, token) => {
|
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
266
|
|
|
267
|
-
|
|
268
|
-
createTrainingPlan
|
|
269
|
-
deleteTrainingPlan
|
|
270
|
-
discardTrainingPlanChanges
|
|
271
|
-
generateNewBaseline
|
|
272
|
-
getTrainingPlanById
|
|
273
|
-
getListOfTrainingPlans
|
|
274
|
-
publishTrainingPlan
|
|
275
|
-
updateTrainingPlan
|
|
276
|
-
updateActivities
|
|
267
|
+
const trainingPlan = {
|
|
268
|
+
createTrainingPlan,
|
|
269
|
+
deleteTrainingPlan,
|
|
270
|
+
discardTrainingPlanChanges,
|
|
271
|
+
generateNewBaseline,
|
|
272
|
+
getTrainingPlanById,
|
|
273
|
+
getListOfTrainingPlans,
|
|
274
|
+
publishTrainingPlan,
|
|
275
|
+
updateTrainingPlan,
|
|
276
|
+
updateActivities,
|
|
277
277
|
};
|
|
278
|
+
|
|
279
|
+
export default trainingPlan;
|
package/lib/userInformation.js
CHANGED
|
@@ -100,8 +100,10 @@ export const updateEntryfromArrayBusinessProperty = (
|
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
export
|
|
104
|
-
addEntryToArrayBusinessProperty
|
|
105
|
-
removeEntryFromArrayBusinessProperty
|
|
106
|
-
updateEntryfromArrayBusinessProperty
|
|
103
|
+
export const userInformation = {
|
|
104
|
+
addEntryToArrayBusinessProperty,
|
|
105
|
+
removeEntryFromArrayBusinessProperty,
|
|
106
|
+
updateEntryfromArrayBusinessProperty,
|
|
107
107
|
};
|
|
108
|
+
|
|
109
|
+
export default userInformation;
|
package/lib/users.js
CHANGED
|
@@ -613,28 +613,30 @@ export const validateResetPasswordCode = (email, code) => {
|
|
|
613
613
|
});
|
|
614
614
|
};
|
|
615
615
|
|
|
616
|
-
|
|
617
|
-
addAPIToken
|
|
618
|
-
confirmEmailAddress
|
|
619
|
-
createAccount
|
|
620
|
-
createUserAccount
|
|
621
|
-
deleteAPIToken
|
|
622
|
-
deleteUsers
|
|
623
|
-
getAPITokens
|
|
624
|
-
getUserById
|
|
625
|
-
getUserInformation
|
|
626
|
-
getUsers
|
|
627
|
-
inviteUsers
|
|
628
|
-
login
|
|
629
|
-
logout
|
|
630
|
-
refreshToken
|
|
631
|
-
removeAPIToken
|
|
632
|
-
resendInvitationEmails
|
|
633
|
-
resetPassword
|
|
634
|
-
sendPasswordResetNotification
|
|
635
|
-
setUserInformation
|
|
636
|
-
updateUserEmail
|
|
637
|
-
updateUserGroups
|
|
638
|
-
updateUserPassword
|
|
639
|
-
validateResetPasswordCode
|
|
616
|
+
const users = {
|
|
617
|
+
addAPIToken,
|
|
618
|
+
confirmEmailAddress,
|
|
619
|
+
createAccount,
|
|
620
|
+
createUserAccount,
|
|
621
|
+
deleteAPIToken,
|
|
622
|
+
deleteUsers,
|
|
623
|
+
getAPITokens,
|
|
624
|
+
getUserById,
|
|
625
|
+
getUserInformation,
|
|
626
|
+
getUsers,
|
|
627
|
+
inviteUsers,
|
|
628
|
+
login,
|
|
629
|
+
logout,
|
|
630
|
+
refreshToken,
|
|
631
|
+
removeAPIToken,
|
|
632
|
+
resendInvitationEmails,
|
|
633
|
+
resetPassword,
|
|
634
|
+
sendPasswordResetNotification,
|
|
635
|
+
setUserInformation,
|
|
636
|
+
updateUserEmail,
|
|
637
|
+
updateUserGroups,
|
|
638
|
+
updateUserPassword,
|
|
639
|
+
validateResetPasswordCode,
|
|
640
640
|
};
|
|
641
|
+
|
|
642
|
+
export default users;
|
package/lib/utils.js
CHANGED
|
@@ -43,8 +43,6 @@ export const removeNullProperties = (object) => {
|
|
|
43
43
|
return object;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
removeNullProperties: removeNullProperties,
|
|
50
|
-
};
|
|
46
|
+
const utils = { getBaseUrl, objectToArray, removeNullProperties };
|
|
47
|
+
|
|
48
|
+
export default utils;
|