Skip to content

Commit 81fc268

Browse files
Kitty JoseKitty Jose
authored andcommitted
2 parents 82098d7 + 6568bbe commit 81fc268

23 files changed

+15849
-10691
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ jobs:
3232
- uses: actions/setup-node@v1
3333
with:
3434
node-version: 14
35-
- name: Install and test
36-
run: npm install-ci-test
37-
- name: Build
38-
run: npm run build
35+
- name: Run terminusdb server
36+
run: docker run --detach --publish 127.0.0.1:6363:6363 terminusdb/terminusdb-server:dev && sleep 3
37+
- name: Install, build and test
38+
run: |
39+
npm ci
40+
npm run build
41+
npm run test
42+
npm run test:integration
3943
- name: Lint
4044
run: npm run lint:check
4145
- name: Check for changes to docs
@@ -50,4 +54,4 @@ jobs:
5054
- name: Update coveralls
5155
uses: coverallsapp/github-action@master
5256
with:
53-
github-token: ${{ secrets.GITHUB_TOKEN }}
57+
github-token: ${{ secrets.GITHUB_TOKEN }}

RELEASE_NOTES.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# TerminusDB Client v10.0.22
2+
3+
## New 🚀
4+
5+
* Add Woql.boolean in WOQL class
6+
* Add Woql.date in WOQL class
7+
* Add Woql.datetime in WOQL class
8+
9+
# TerminusDB Client v10.0.21
10+
11+
## New 🚀
12+
13+
* Add getOrganizationRemote in AccessControl class
14+
15+
## Fixes 🛠
16+
17+
* Replace coveralls with coveralls-next
18+
119
# TerminusDB Client v10.0.19
220

321
## New 🚀

docs/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ graph all through a simple document API.
2222
[terminusdb-docs]: https://terminusdb.com/docs/
2323
[terminusdb-repo]: https://github.com/terminusdb/terminusdb
2424

25-
**TerminusX** is a self-service data platform that allows you to build, deploy,
26-
execute, monitor, and share versioned data products. It is built on TerminusDB.
27-
TerminusX is in public beta and you can [sign up now][dashboard].
25+
**TerminusX** TerminusX is TerminusDB as a service. SOC 2 certified hosting. Build your beta and get to market fast. Scale up and deploy your own instance. [Sign up now][dashboard].
2826

2927
[dashboard]: https://dashboard.terminusdb.com/
3028

@@ -71,7 +69,7 @@ it to your sources, and use that in the `<script>` instead.
7169
This example creates a simple dataProduct, starting to create a database model the schema
7270
and insert a simple document
7371

74-
For the [full Documentation][terminusdb-client-js-docs]
72+
For the [full Documentation](https://terminusdb.com/docs/guides/reference-guides/javascript-client-reference)
7573

7674
```javascript
7775
const TerminusClient = require("@terminusdb/terminusdb-client");

docs/_sidebar.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- [server](api/woqlClient.js?id=server)
1919
- [api](api/woqlClient.js?id=api)
2020
- [organization](api/woqlClient.js?id=organization)
21+
- [hasDatabase](api/woqlClient.js?id=hasDatabase)
2122
- [getDatabases](api/woqlClient.js?id=getDatabases)
2223
- [databases](api/woqlClient.js?id=databases)
2324
- [user](api/woqlClient.js?id=user)
@@ -57,6 +58,7 @@
5758
- [getEnums](api/woqlClient.js?id=getEnums)
5859
- [getClassDocuments](api/woqlClient.js?id=getClassDocuments)
5960
- [getBranches](api/woqlClient.js?id=getBranches)
61+
- [getCommitsLog](api/woqlClient.js?id=getCommitsLog)
6062
- [getPrefixes](api/woqlClient.js?id=getPrefixes)
6163
- [getUserOrganizations](api/woqlClient.js?id=getUserOrganizations)
6264
- [userOrganizations](api/woqlClient.js?id=userOrganizations)
@@ -65,6 +67,8 @@
6567
- [getVersionDiff](api/woqlClient.js?id=getVersionDiff)
6668
- [apply](api/woqlClient.js?id=apply)
6769
- [patch](api/woqlClient.js?id=patch)
70+
- [sendCustomRequest](api/woqlClient.js?id=sendCustomRequest)
71+
- [WOQLClient](api/woqlClient.js?id=WOQLClient)
6872
- [WOQL](api/woql.js?id=WOQL)
6973
- [using](api/woql.js?id=using)
7074
- [comment](api/woql.js?id=comment)
@@ -91,7 +95,6 @@
9195
- [put](api/woql.js?id=put)
9296
- [as](api/woql.js?id=as)
9397
- [remote](api/woql.js?id=remote)
94-
- [file](api/woql.js?id=file)
9598
- [post](api/woql.js?id=post)
9699
- [delete_triple](api/woql.js?id=delete_triple)
97100
- [delete_quad](api/woql.js?id=delete_quad)
@@ -153,6 +156,7 @@
153156
- [vars](api/woql.js?id=vars)
154157
- [doc](api/woql.js?id=doc)
155158
- [client](api/woql.js?id=client)
159+
- [Vars](api/woql.js?id=Vars)
156160
- [emerge](api/woql.js?id=emerge)
157161
- [update_triple](api/woql.js?id=update_triple)
158162
- [update_quad](api/woql.js?id=update_quad)
@@ -211,6 +215,7 @@
211215
- [ActionType](api/typedef.js?id=ActionType)
212216
- [ParamsObj](api/typedef.js?id=ParamsObj)
213217
- [RolesObj](api/typedef.js?id=RolesObj)
218+
- [ResourceType](api/typedef.js?id=ResourceType)
214219
- [RepoType](api/typedef.js?id=RepoType)
215220
- [DbDetails](api/typedef.js?id=DbDetails)
216221
- [RemoteRepoDetails](api/typedef.js?id=RemoteRepoDetails)

docs/api/accesscontrol.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ accessControl.deleteUser(userId).then(result=>{
254254
```
255255

256256
## manageCapability
257-
##### accessControl.manageCapability(userName, resourceName, rolesArr, operation, resourceType) ⇒ <code>Promise</code>
257+
##### accessControl.manageCapability(userName, resourceName, rolesArr, operation, scopeType) ⇒ <code>Promise</code>
258258
-- TerminusdDB API ---
259259
Grant/Revoke Capability
260260

@@ -266,7 +266,7 @@ Grant/Revoke Capability
266266
| resourceName | <code>string</code> | the name of a (database or team) |
267267
| rolesArr | <code>array</code> | the roles name list |
268268
| operation | <code>typedef.CapabilityCommand</code> | grant/revoke operation |
269-
| resourceType | <code>typedef.ResourceType</code> | the resource type (database or organization) |
269+
| scopeType | <code>typedef.ScopeType</code> | the resource type (database or organization) |
270270

271271
**Example**
272272
```javascript
@@ -385,6 +385,25 @@ exists and 404: if the organization does not exist
385385
| orgName | <code>string</code> | The organization name to check if exists. |
386386

387387

388+
## createOrganizationRemote
389+
##### accessControl.createOrganizationRemote(orgName) ⇒ <code>Promise</code>
390+
-- TerminusX API ---
391+
IMPORTANT This does not work with the API-TOKEN.
392+
Create an organization
393+
394+
**Returns**: <code>Promise</code> - A promise that returns the call response object, or an Error if rejected.
395+
396+
| Param | Type | Description |
397+
| --- | --- | --- |
398+
| orgName | <code>string</code> | The organization name to create |
399+
400+
**Example**
401+
```javascript
402+
accessControl.createOrganization("my_org_name").then(result=>{
403+
console.log(result)
404+
})
405+
```
406+
388407
## getPendingOrgInvites
389408
##### accessControl.getPendingOrgInvites([orgName]) ⇒ <code>Promise</code>
390409
-- TerminusX API ---

docs/api/typedef.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ the GET document interface query parameters
1212

1313
| Name | Type | Description |
1414
| --- | --- | --- |
15+
| [query] | <code>object</code> | object that descrive the document query |
1516
| [graph_type] | <code>GraphType</code> | instance|schema, default value is instance. Used to switch between getting documents from the instance or the schema graph. |
1617
| [type] | <code>string</code> | only documents of the given type are returned. |
1718
| [id] | <code>string</code> | only the document with the given ID is returned. |
@@ -131,8 +132,8 @@ the DELETE document interface query parameters
131132
| [invitation] | <code>string</code> | - |
132133

133134

134-
## ResourceType
135-
##### ResourceType: ` "database"` | ` "organization" `
135+
## ScopeType
136+
##### ScopeType: ` "database"` | ` "organization" `
136137

137138
## RepoType
138139
##### RepoType: ` "local"` | ` "remote" `

docs/api/woql.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,54 @@ literal(1, "nonNegativeInteger")
13591359
//returns { "@type": "xsd:nonNegativeInteger", "@value": 1 }
13601360
```
13611361

1362+
## date
1363+
##### WOQL.date(date) ⇒ <code>object</code>
1364+
Generates explicitly a JSON-LD literal date from the imput
1365+
1366+
**Returns**: <code>object</code> - - A JSON-LD literal date
1367+
1368+
| Param | Type | Description |
1369+
| --- | --- | --- |
1370+
| date | <code>string</code> | any date format string (YYYY-MM-DD) |
1371+
1372+
**Example**
1373+
```javascript
1374+
date("2022-10-02")
1375+
//returns { "@type": "xsd:date", "@value": "2022-10-02" }
1376+
```
1377+
1378+
## datetime
1379+
##### WOQL.datetime(datetime) ⇒ <code>object</code>
1380+
Generates explicitly a JSON-LD literal datetime from the imput
1381+
1382+
**Returns**: <code>object</code> - - A JSON-LD literal datetime
1383+
1384+
| Param | Type | Description |
1385+
| --- | --- | --- |
1386+
| datetime | <code>string</code> | any datetime format string (YYYY-MM-DDThh-mm-ssZ) |
1387+
1388+
**Example**
1389+
```javascript
1390+
datetime("2022-10-19T14:17:12Z")
1391+
//returns { "@type": "xsd:dateTime", "@value": "2022-10-19T14:17:12Z" }
1392+
```
1393+
1394+
## boolean
1395+
##### WOQL.boolean(bool) ⇒ <code>object</code>
1396+
Generates explicitly a JSON-LD literal boolean from the input
1397+
1398+
**Returns**: <code>object</code> - - A JSON-LD literal boolean
1399+
1400+
| Param | Type | Description |
1401+
| --- | --- | --- |
1402+
| bool | <code>boolean</code> | true | false |
1403+
1404+
**Example**
1405+
```javascript
1406+
boolean(true)
1407+
//returns { "@type": "xsd:boolean", "@value": true }
1408+
```
1409+
13621410
## iri
13631411
##### WOQL.iri(val) ⇒ <code>object</code>
13641412
Explicitly sets a value to be an IRI - avoiding automatic type marshalling

0 commit comments

Comments
 (0)