@verdocs/js-sdk 4.1.12 → 4.1.14

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/dist/index.mjs CHANGED
@@ -1704,8 +1704,8 @@ const getGroups = (endpoint) => endpoint.api //
1704
1704
  const getGroup = (endpoint, groupId) => endpoint.api //
1705
1705
  .get(`/v2/organization-groups/${groupId}`)
1706
1706
  .then((r) => r.data);
1707
- const createGroup = (endpoint, name) => endpoint.api //
1708
- .post('/v2/organization-groups', { name })
1707
+ const createGroup = (endpoint, params) => endpoint.api //
1708
+ .post('/v2/organization-groups', params)
1709
1709
  .then((r) => r.data);
1710
1710
  const addGroupMember = (endpoint, groupId, profile_id) => endpoint.api //
1711
1711
  .post(`/v2/organization-groups/${groupId}/members`, { profile_id })
@@ -1769,8 +1769,8 @@ const getOrganizationInvitation = (endpoint, email, token) => endpoint.api //
1769
1769
  * and session tokens will be returned to access the new profile. The profile's email_verified flag will
1770
1770
  * also be set to true.
1771
1771
  */
1772
- const acceptOrganizationInvitation = (endpoint, email, token) => endpoint.api //
1773
- .post('/v2/organization-invitations/accept', { email, token })
1772
+ const acceptOrganizationInvitation = (endpoint, params) => endpoint.api //
1773
+ .post('/v2/organization-invitations/accept', params)
1774
1774
  .then((r) => r.data);
1775
1775
  /**
1776
1776
  * Decline an invitation. This will mark the status "declined," providing a visual indication to the