Skip to content

Commit 0c39d82

Browse files
authored
Merge pull request #288 from terminusdb/fix-type
Make AccessControl manageCapability scopeType param optional
2 parents 791ed8c + 68538b1 commit 0c39d82

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

RELEASE_NOTES.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# TerminusDB Client v10.0.32
2+
## Fixes 🛠
3+
* Make AccessControl manageCapability scopeType param optional
14
# TerminusDB Client v10.0.30
25
## Fixes 🛠
36
* Fix schema endpoint for system database

lib/accessControl.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ AccessControl.prototype.createOrganization = function (orgName) {
203203
* @param {string} orgName - The organization name to delete
204204
* @return {Promise} A promise that returns the call response object, or an Error if rejected.
205205
* @example
206-
* accessControl.createOrganization("my_org_name").then(result=>{
206+
* accessControl.deleteOrganization("my_org_name").then(result=>{
207207
* console.log(result)
208208
* })
209209
*/
@@ -304,7 +304,7 @@ AccessControl.prototype.deleteUser = function (userId) {
304304
* @param {string} resourceName - the name of a (database or team)
305305
* @param {array} rolesArr - the roles name list
306306
* @param {typedef.CapabilityCommand} operation - grant/revoke operation
307-
* @param {typedef.ScopeType} scopeType - the resource type (database or organization)
307+
* @param {typedef.ScopeType} [scopeType] - the resource type (database or organization)
308308
* @return {Promise} A promise that returns the call response object, or an Error if rejected.
309309
* @example
310310
* //we add an user to an organization and manage users' access

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@terminusdb/terminusdb-client",
3-
"version": "10.0.31",
3+
"version": "10.0.32",
44
"description": "TerminusDB client library",
55
"main": "index.js",
66
"types": "./dist/typescript/index.d.ts",

0 commit comments

Comments
 (0)