@verdocs/js-sdk 4.1.13 → 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.d.mts CHANGED
@@ -1732,10 +1732,14 @@ declare const getGroups: (endpoint: VerdocsEndpoint) => Promise<IGroup[]>;
1732
1732
  * ```
1733
1733
  */
1734
1734
  declare const getGroup: (endpoint: VerdocsEndpoint, groupId: string) => Promise<IGroup>;
1735
- declare const createGroup: (endpoint: VerdocsEndpoint, name: string) => Promise<any>;
1735
+ declare const createGroup: (endpoint: VerdocsEndpoint, params: {
1736
+ name: string;
1737
+ permissions: TPermission[];
1738
+ }) => Promise<any>;
1736
1739
  declare const addGroupMember: (endpoint: VerdocsEndpoint, groupId: string, profile_id: string) => Promise<any>;
1737
1740
  declare const deleteGroupMember: (endpoint: VerdocsEndpoint, groupId: string, profile_id: string) => Promise<any>;
1738
1741
  declare const updateGroup: (endpoint: VerdocsEndpoint, groupId: string, params: {
1742
+ name: string;
1739
1743
  permissions: TPermission[];
1740
1744
  }) => Promise<any>;
1741
1745
  interface IUpdateProfileRequest {
package/dist/index.d.ts CHANGED
@@ -1732,10 +1732,14 @@ declare const getGroups: (endpoint: VerdocsEndpoint) => Promise<IGroup[]>;
1732
1732
  * ```
1733
1733
  */
1734
1734
  declare const getGroup: (endpoint: VerdocsEndpoint, groupId: string) => Promise<IGroup>;
1735
- declare const createGroup: (endpoint: VerdocsEndpoint, name: string) => Promise<any>;
1735
+ declare const createGroup: (endpoint: VerdocsEndpoint, params: {
1736
+ name: string;
1737
+ permissions: TPermission[];
1738
+ }) => Promise<any>;
1736
1739
  declare const addGroupMember: (endpoint: VerdocsEndpoint, groupId: string, profile_id: string) => Promise<any>;
1737
1740
  declare const deleteGroupMember: (endpoint: VerdocsEndpoint, groupId: string, profile_id: string) => Promise<any>;
1738
1741
  declare const updateGroup: (endpoint: VerdocsEndpoint, groupId: string, params: {
1742
+ name: string;
1739
1743
  permissions: TPermission[];
1740
1744
  }) => Promise<any>;
1741
1745
  interface IUpdateProfileRequest {
package/dist/index.js CHANGED
@@ -1706,8 +1706,8 @@ const getGroups = (endpoint) => endpoint.api //
1706
1706
  const getGroup = (endpoint, groupId) => endpoint.api //
1707
1707
  .get(`/v2/organization-groups/${groupId}`)
1708
1708
  .then((r) => r.data);
1709
- const createGroup = (endpoint, name) => endpoint.api //
1710
- .post('/v2/organization-groups', { name })
1709
+ const createGroup = (endpoint, params) => endpoint.api //
1710
+ .post('/v2/organization-groups', params)
1711
1711
  .then((r) => r.data);
1712
1712
  const addGroupMember = (endpoint, groupId, profile_id) => endpoint.api //
1713
1713
  .post(`/v2/organization-groups/${groupId}/members`, { profile_id })