Skip to content

Commit 9c2d6df

Browse files
Francesca-Bitgithub-actions[bot]
authored andcommitted
Apply docs changes
1 parent 81c5539 commit 9c2d6df

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

docs/api/accesscontrol.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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/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 string date literal from the input
1365+
1366+
**Returns**: <code>object</code> - - A JSON-LD literal
1367+
1368+
| Param | Type | Description |
1369+
| --- | --- | --- |
1370+
| date | <code>string</code> | any date string format 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(date) ⇒ <code>object</code>
1380+
Generates explicitly a JSON-LD string datetime literal from the input
1381+
1382+
**Returns**: <code>object</code> - - A JSON-LD literal
1383+
1384+
| Param | Type | Description |
1385+
| --- | --- | --- |
1386+
| date | <code>string</code> | any datetime string format 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 boolean literal from the input
1397+
1398+
**Returns**: <code>object</code> - - A JSON-LD literal
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)