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