@stackfactor/client-api 1.0.90 → 1.0.91

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.
Files changed (2) hide show
  1. package/lib/role.js +6 -5
  2. package/package.json +1 -1
package/lib/role.js CHANGED
@@ -280,16 +280,17 @@ export const setRoleInformation = (id, data, token) => {
280
280
 
281
281
  /**
282
282
  * Set user roles
283
- * @param {String} id
284
- * @param {Array<Object>} roles
285
- * @param {String} token
283
+ * @param {String} id The id of the user to be updated
284
+ * @param {Array<Object>} roles The list of roles to be assigned to the user
285
+ * @param {String} jobDescription The job description to be assigned to the user
286
+ * @param {String} token Authorization token
286
287
  * @returns {Promise}
287
288
  */
288
- export const setUserRoles = (id, roles, roleDescription, token) => {
289
+ export const setUserRoles = (id, roles, jobDescription, token) => {
289
290
  return new Promise(function (resolve, reject) {
290
291
  const requestData = {
291
292
  roles: roles,
292
- roleDescription: roleDescription,
293
+ jobDescription: jobDescription,
293
294
  };
294
295
  if (id) requestData.userid = id;
295
296
  let request = client.post(`api/v1/roles/settouser/`, requestData, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {