@stackfactor/client-api 1.0.81 → 1.0.83

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/users.js +6 -2
  2. package/package.json +1 -1
package/lib/users.js CHANGED
@@ -347,12 +347,16 @@ export const getUsers = (filter, fields, token) => {
347
347
  /**
348
348
  * Invite other users to join the same account
349
349
  * @param {Array<String>} invitees List of emails of the invitees
350
+ * @param {String} groupId The group the user should be added to
351
+ * @param {String} teamId The team the user should be added to
350
352
  * @param {String} token Authorization token
351
353
  */
352
- export const inviteUsers = (invitees, authToken) => {
354
+ export const inviteUsers = (invitees, groupId, teamId, authToken) => {
353
355
  return new Promise(function (resolve, reject) {
354
356
  const requestData = removeNullProperties({
355
357
  invitees: invitees,
358
+ groupId: groupId,
359
+ teamId: teamId,
356
360
  token: authToken,
357
361
  });
358
362
  let request = client.post("api/v1/users/invite", requestData, {
@@ -539,7 +543,7 @@ export const sendPasswordResetNotification = (email) => {
539
543
  export const setUserInformation = (userId, category, data, token) => {
540
544
  return new Promise(function (resolve, reject) {
541
545
  const requestData = removeNullProperties({
542
- data: category ? { category: { ...data } } : data,
546
+ data: category ? { category: data } : data,
543
547
  userId: userId,
544
548
  });
545
549
  let confirmationRequest = client.post("api/v1/users/user", requestData, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {