From f3f8154ec194769205fc9fef9e0b8f0a4c640675 Mon Sep 17 00:00:00 2001 From: Neelterminusdb Date: Wed, 8 Feb 2023 11:50:43 +0000 Subject: [PATCH] Update from https://github.com/terminusdb/terminusdb-client-js/commit/d039f7e9341a516047a2c849e93f5a3b87882297 --- .../accesscontrol.md | 18 ++++++++++++++++++ .../javascript-client-reference/woqlclient.md | 11 ++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/guides/reference-guides/javascript-client-reference/accesscontrol.md b/guides/reference-guides/javascript-client-reference/accesscontrol.md index 3b642a28..5c13d067 100644 --- a/guides/reference-guides/javascript-client-reference/accesscontrol.md +++ b/guides/reference-guides/javascript-client-reference/accesscontrol.md @@ -707,3 +707,21 @@ accessControl.deleteAccessRequest("djjdshhsuuwewueueuiHYHYYW.......").then(resul console.log(result) }) ``` + +## getUserInfo +##### accessControl.getUserInfo([orgName]) ⇒ Promise +-- TerminusX API -- +Get the userinfo teams ownership and subscription + +**Returns**: Promise - A promise that returns the call response object, or an Error if rejected. + +| Param | Type | Description | +| --- | --- | --- | +| [orgName] | string | The organization name. | + +**Example** +```javascript +accessControl.getUserInfo().then(result=>{ + console.log(result) +}) +``` diff --git a/guides/reference-guides/javascript-client-reference/woqlclient.md b/guides/reference-guides/javascript-client-reference/woqlclient.md index ddc75bb4..a36a1930 100644 --- a/guides/reference-guides/javascript-client-reference/woqlclient.md +++ b/guides/reference-guides/javascript-client-reference/woqlclient.md @@ -1109,18 +1109,19 @@ client.getBranches() ``` ## getCommitsLog -##### woqlClient.getCommitsLog([dbId]) ⇒ Promise +##### woqlClient.getCommitsLog([start], [count]) ⇒ Promise get the database collections list **Returns**: Promise - A promise that returns the call response object, or an Error if rejected. -| Param | Type | Description | -| --- | --- | --- | -| [dbId] | string | the database id | +| Param | Type | Default | Description | +| --- | --- | --- | --- | +| [start] | number | 0 | where to start printing the commit information in the log (starting from the head of the current branch) | +| [count] | number | 1 | The number of total commit log records to return | **Example** ```javascript -client.getCommitsLog() +client.getCommitsLog(count=10) ``` ## getPrefixes