Skip to content

Commit a2ab94b

Browse files
committed
review docs for woqllibrary.commits
1 parent f298a24 commit a2ab94b

File tree

3 files changed

+53
-3
lines changed

3 files changed

+53
-3
lines changed

docs/api/typedef.js.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
## Typedefs
22

3+
<dl>
4+
<dt><a href="#DocParamsGet">DocParamsGet</a> : <code>Object</code></dt>
5+
<dd><p>the GET document interface query parameters</p>
6+
</dd>
7+
<dt><a href="#DocParamsPost">DocParamsPost</a> : <code>Object</code></dt>
8+
<dd><p>the POST document interface query parameters</p>
9+
</dd>
10+
<dt><a href="#DocParamsPut">DocParamsPut</a> : <code>Object</code></dt>
11+
<dd><p>the PUT document interface query parameters</p>
12+
</dd>
13+
<dt><a href="#DocParamsDelete">DocParamsDelete</a> : <code>Object</code></dt>
14+
<dd><p>the DELETE document interface query parameters</p>
15+
</dd>
16+
<dt><a href="#GraphRef">GraphRef</a> : <code>&quot;schema/main&quot;</code> | <code>&quot;instance/main&quot;</code> | <code>string</code></dt>
17+
<dd></dd>
18+
<dt><a href="#DataFormatObj">DataFormatObj</a> : <code>Object</code></dt>
19+
<dd><p>(export/import)</p>
20+
</dd>
21+
<dt><a href="#FuntionType">FuntionType</a> : <code>&quot;add_quad&quot;</code> | <code>&quot;delete_quad&quot;</code> | <code>&quot;add_triple&quot;</code> | <code>&quot;delete_triple&quot;</code> | <code>&quot;quad&quot;</code> | <code>&quot;triple&quot;</code></dt>
22+
<dd></dd>
23+
<dt><a href="#ResourceType">ResourceType</a> : <code>&quot;commits&quot;</code> | <code>&quot;meta&quot;</code> | <code>&quot;branch&quot;</code> | <code>&quot;ref&quot;</code> | <code>&quot;repo&quot;</code> | <code>&quot;db&quot;</code></dt>
24+
<dd></dd>
25+
<dt><a href="#GraphType">GraphType</a> : <code>&quot;instance&quot;</code> | <code>&quot;schema&quot;</code></dt>
26+
<dd></dd>
27+
<dt><a href="#CredentialObj">CredentialObj</a> : <code>Object</code></dt>
28+
<dd></dd>
29+
<dt><a href="#ActionType">ActionType</a> : <code>&#x27;graph&#x27;</code> | <code>&#x27;db&#x27;</code> | <code>&#x27;clone&#x27;</code> | <code>&#x27;triples&#x27;</code> | <code>&#x27;woql&#x27;</code> | <code>&#x27;fetch&#x27;</code> | <code>&#x27;pull&#x27;</code> | <code>&#x27;rebase&#x27;</code> | <code>&#x27;branch&#x27;</code> | <code>&#x27;reset&#x27;</code> | <code>&#x27;push&#x27;</code> | <code>&#x27;squash&#x27;</code></dt>
30+
<dd></dd>
31+
<dt><a href="#ParamsObj">ParamsObj</a> : <code>Object</code></dt>
32+
<dd></dd>
33+
<dt><a href="#RolesObj">RolesObj</a> : <code>Object</code></dt>
34+
<dd></dd>
35+
<dt><a href="#RepoType">RepoType</a> : <code>&quot;local&quot;</code> | <code>&quot;remote&quot;</code></dt>
36+
<dd></dd>
37+
<dt><a href="#DbDetails">DbDetails</a> : <code>Object</code></dt>
38+
<dd></dd>
39+
<dt><a href="#RemoteRepoDetails">RemoteRepoDetails</a> : <code>Object</code></dt>
40+
<dd><p>{remote: &quot;origin&quot;, &quot;remote_branch&quot;: &quot;main&quot;, &quot;author&quot;: &quot;admin&quot;, &quot;message&quot;: &quot;message&quot;}</p>
41+
</dd>
42+
<dt><a href="#CloneSourceDetails">CloneSourceDetails</a> : <code>Object</code></dt>
43+
<dd></dd>
44+
</dl>
45+
46+
347
## DocParamsGet
448
#### DocParamsGet : <code>Object</code>
549
the GET document interface query parameters
@@ -78,7 +122,7 @@ the DELETE document interface query parameters
78122
#### ResourceType : <code>&quot;commits&quot;</code> \| <code>&quot;meta&quot;</code> \| <code>&quot;branch&quot;</code> \| <code>&quot;ref&quot;</code> \| <code>&quot;repo&quot;</code> \| <code>&quot;db&quot;</code>
79123

80124
## GraphType
81-
#### GraphType : <code>&quot;schema&quot;</code> \| <code>&quot;instance&quot;</code>
125+
#### GraphType : <code>&quot;instance&quot;</code> \| <code>&quot;schema&quot;</code>
82126

83127
## CredentialObj
84128
#### CredentialObj : <code>Object</code>

docs/api/woql.js.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,8 +1215,11 @@ get the predefined library query
12151215
const query = WOQL.lib().previousCommits('m8vpxewh2aovfauebfkbzwmj4qwr5lb')
12161216

12171217
//return the commits of a specific branch starting from the head
1218+
//you can add the limit (how many results to return.) and the start point
12181219
//if a timestamp is given, gets the commits before the specified timestamp
1219-
const query = WOQL.lib().commits('main',10,1630683082.9278786)
1220+
//WOQL.lib().commits(branch='main',limit=0,start=0,timestamp=0)
1221+
1222+
const query = WOQL.lib().commits('main',10,2,1630683082.9278786)
12201223

12211224
//return the branches list with the timestamp and commits id
12221225
const query = WOQL.lib().branches()

lib/woql.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,8 +1077,11 @@ WOQL.json = function(JSON_LD) {
10771077
* const query = WOQL.lib().previousCommits('m8vpxewh2aovfauebfkbzwmj4qwr5lb')
10781078
*
10791079
* //return the commits of a specific branch starting from the head
1080+
* //you can add the limit (how many results to return.) and the start point
10801081
* //if a timestamp is given, gets the commits before the specified timestamp
1081-
* const query = WOQL.lib().commits('main',10,1630683082.9278786)
1082+
* //WOQL.lib().commits(branch='main',limit=0,start=0,timestamp=0)
1083+
*
1084+
* const query = WOQL.lib().commits('main',10,2,1630683082.9278786)
10821085
*
10831086
* //return the branches list with the timestamp and commits id
10841087
* const query = WOQL.lib().branches()

0 commit comments

Comments
 (0)