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