@stackfactor/client-api 1.0.88 → 1.0.90
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 +2 -0
- package/lib/constants.js +28 -1
- package/lib/users.js +1 -1
- package/package.json +1 -1
package/exports.js
CHANGED
|
@@ -11,6 +11,7 @@ import config from "./lib/config.js";
|
|
|
11
11
|
import {
|
|
12
12
|
DOCUMENT_VERSION,
|
|
13
13
|
PERMISSIONS,
|
|
14
|
+
PERMISSION_DESCRIPTIONS,
|
|
14
15
|
RESPONSE_TYPE,
|
|
15
16
|
} from "./lib/constants.js";
|
|
16
17
|
import contentGenerator from "./lib/integrations/contentGenerator.js";
|
|
@@ -53,6 +54,7 @@ export {
|
|
|
53
54
|
learningPath,
|
|
54
55
|
logger,
|
|
55
56
|
PERMISSIONS,
|
|
57
|
+
PERMISSION_DESCRIPTIONS,
|
|
56
58
|
RESPONSE_TYPE,
|
|
57
59
|
role,
|
|
58
60
|
roleTemplate,
|
package/lib/constants.js
CHANGED
|
@@ -95,4 +95,31 @@ const PERMISSIONS = {
|
|
|
95
95
|
PROMOTE_CONTENT: "5fac2126427ce31f8a92c0cb",
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
const PERMISSION_DESCRIPTIONS = {
|
|
99
|
+
"5ea3d1152839450e16e72bba": "Author content",
|
|
100
|
+
"5ea3d10bea252025c8ec351b": "Promote content",
|
|
101
|
+
"61970935cee185acf08111f6": "Manage content providers",
|
|
102
|
+
"5fac210560e43de7c6b4a208": "Author content",
|
|
103
|
+
"5e1570cd03f676213bfdcd08": "Manage billing",
|
|
104
|
+
"5f0fa12f16a720fde58ea820": "Manage content providers",
|
|
105
|
+
"5dd612fe59e518ac87b8cf8e": "Manage groups",
|
|
106
|
+
"64f54d20b7e49e10c779b4a6": "Manage learning content",
|
|
107
|
+
"5dd61305a73c68b44c3f0827": "Manage learning paths",
|
|
108
|
+
"5dd612d5338ea9a6ae6326da": "Manage organization information",
|
|
109
|
+
"5fac210e7e6539d37a897c94": "Auto approve own profile information updates",
|
|
110
|
+
"650fadb23956a2154ac890ac":
|
|
111
|
+
"Skip assessment when updating own profile information",
|
|
112
|
+
"5fac21164351c6727a34cd4e": "Auto approve own skill set updates",
|
|
113
|
+
"5e1570e087d836dc77888a5f": "Manage settings",
|
|
114
|
+
"5fac211e6c8f874bd7137b98": "Auto approve own team information updates",
|
|
115
|
+
"5dd61314afc2455a89b1a37b": "Manage teams",
|
|
116
|
+
"5dd612e40f0bc559c41a2b29": "Manage users",
|
|
117
|
+
"5fac2126427ce31f8a92c0cb": "Promote content",
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export {
|
|
121
|
+
DOCUMENT_VERSION,
|
|
122
|
+
PERMISSIONS,
|
|
123
|
+
PERMISSION_DESCRIPTIONS,
|
|
124
|
+
RESPONSE_TYPE,
|
|
125
|
+
};
|
package/lib/users.js
CHANGED
|
@@ -536,7 +536,7 @@ export const sendPasswordResetNotification = (email) => {
|
|
|
536
536
|
export const setUserInformation = (userId, category, data, token) => {
|
|
537
537
|
return new Promise(function (resolve, reject) {
|
|
538
538
|
const requestData = {
|
|
539
|
-
data: category ? { category: data } : data,
|
|
539
|
+
data: category ? { [category]: data } : data,
|
|
540
540
|
userId: userId,
|
|
541
541
|
};
|
|
542
542
|
let confirmationRequest = client.post("api/v1/users/user", requestData, {
|