@verdocs/js-sdk 4.0.1 → 4.0.2

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
@@ -1090,11 +1090,11 @@ const addMembers = (endpoint, organizationId, groupId, params) => endpoint.api /
1090
1090
  const deleteMembers = (endpoint, organizationId, groupId, params) => endpoint.api //
1091
1091
  .put(`/organizations/${organizationId}/groups/${groupId}/delete_members`, params)
1092
1092
  .then((r) => r.data);
1093
- const addPermission = (endpoint, organizationId, groupId, permissionId) => endpoint.api //
1094
- .post(`/organizations/${organizationId}/groups/${groupId}/permissions/${permissionId}`, {})
1093
+ const addPermission = (endpoint, organizationId, groupId, permission) => endpoint.api //
1094
+ .post(`/organizations/${organizationId}/groups/${groupId}/permissions/${permission}`, {})
1095
1095
  .then((r) => r.data);
1096
- const deletePermission = (endpoint, organizationId, groupId, permissionId) => endpoint.api //
1097
- .delete(`/organizations/${organizationId}/groups/${groupId}/permissions/${permissionId}`)
1096
+ const deletePermission = (endpoint, organizationId, groupId, permission) => endpoint.api //
1097
+ .delete(`/organizations/${organizationId}/groups/${groupId}/permissions/${permission}`)
1098
1098
  .then((r) => r.data);
1099
1099
 
1100
1100
  var Groups = /*#__PURE__*/Object.freeze({
@@ -2286,7 +2286,6 @@ var index$1 = /*#__PURE__*/Object.freeze({
2286
2286
  Types: Types$1
2287
2287
  });
2288
2288
 
2289
- /* tslint:disable:no-bitwise */
2290
2289
  /**
2291
2290
  * Given a `rgba(r,g,b,a)` string value, returns the hex equivalent, dropping the alpha channel.
2292
2291
  */
@@ -2355,9 +2354,11 @@ function nameToRGBA(str) {
2355
2354
  }
2356
2355
  let hash = 0;
2357
2356
  for (let i = 0; i < str.length; i++) {
2357
+ // tslint:disable-next-line:no-bitwise
2358
2358
  hash = str.charCodeAt(i) + ((hash << 5) - hash);
2359
2359
  }
2360
2360
  hash = Math.round(hash / 1.3);
2361
+ // tslint:disable-next-line:no-bitwise
2361
2362
  const c = (hash & 0x00ffff08).toString(16).toUpperCase();
2362
2363
  const hex = '#' + '00000'.substring(0, 6 - c.length) + c;
2363
2364
  const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);