@@ -24,7 +24,6 @@ const WOQLQuery = require('./query/woqlCore');
2424 * should never have to be accessed directly. For situations where you want to communicate
2525 * with a TerminusDB server API, the WOQLClient class is all you will need.
2626 */
27-
2827class WOQLClient {
2928 connectionConfig = null ;
3029
@@ -1053,7 +1052,6 @@ WOQLClient.prototype.prepareRevisionControlArgs = function (rc_args) {
10531052 * "add new schema", response.dataVersion,
10541053 * )
10551054 */
1056-
10571055WOQLClient . prototype . addDocument = function ( json , params , dbId , message = 'add a new document' , lastDataVersion = '' , getDataVersion = false , compress = false ) {
10581056 if ( dbId ) {
10591057 this . db ( dbId ) ;
@@ -1130,7 +1128,6 @@ WOQLClient.prototype.addDocument = function (json, params, dbId, message = 'add
11301128 * response.dataVersion
11311129 * );
11321130 */
1133-
11341131WOQLClient . prototype . queryDocument = function ( query , params , dbId , branch , lastDataVersion = '' , getDataVersion = false ) {
11351132 if ( dbId ) {
11361133 this . db ( dbId ) ;
@@ -1319,7 +1316,6 @@ WOQLClient.prototype.getDocument = function (params, dbId, branch, lastDataVersi
13191316 "children":[{"@type ": "Person","name": "child01"}]
13201317 },{create:true})
13211318 */
1322-
13231319WOQLClient . prototype . updateDocument = function ( json , params , dbId , message = 'update document' , lastDataVersion = '' , getDataVersion = false , compress = false , create = false ) {
13241320 const docParams = params || { } ;
13251321 docParams . author = this . author ( ) ;
@@ -1382,7 +1378,6 @@ WOQLClient.prototype.updateDocument = function (json, params, dbId, message = 'u
13821378 * response.dataVersion,
13831379 * )
13841380 */
1385-
13861381WOQLClient . prototype . deleteDocument = function ( params , dbId , message = 'delete document' , lastDataVersion = '' , getDataVersion = false ) {
13871382 const docParams = params || { } ;
13881383 let payload = null ;
@@ -1414,7 +1409,6 @@ WOQLClient.prototype.deleteDocument = function (params, dbId, message = 'delete
14141409 * @example
14151410 * client.getSchemaFrame("Country")
14161411 */
1417-
14181412WOQLClient . prototype . getSchemaFrame = function ( type , dbId ) {
14191413 let params ;
14201414 if ( type ) params = { type } ;
@@ -1432,7 +1426,6 @@ WOQLClient.prototype.getSchemaFrame = function (type, dbId) {
14321426 * @example
14331427 * client.getSchema()
14341428 */
1435-
14361429WOQLClient . prototype . getSchema = function ( dbId , branch ) {
14371430 const params = { graph_type : 'schema' , as_list : true } ;
14381431 return this . getDocument ( params , dbId , branch ) ;
@@ -1779,7 +1772,6 @@ WOQLClient.prototype.getVersionObjectDiff = function (dataVersion, jsonObject, i
17791772 * console.log(diffResult)
17801773 * })
17811774 */
1782-
17831775WOQLClient . prototype . getVersionDiff = function ( beforeVersion , afterVersion , id , options ) {
17841776 if ( typeof beforeVersion !== 'string' || typeof afterVersion !== 'string' ) {
17851777 const errmsg = 'Error, you have to provide a beforeVersion and afterVersion input' ;
@@ -1819,7 +1811,6 @@ WOQLClient.prototype.getVersionDiff = function (beforeVersion, afterVersion, id,
18191811 * console.log(result)
18201812 * })
18211813 */
1822-
18231814// eslint-disable-next-line max-len
18241815WOQLClient . prototype . apply = function ( beforeVersion , afterVersion , message , matchFinalState , options ) {
18251816 const opt = options || { } ;
@@ -1855,7 +1846,6 @@ WOQLClient.prototype.apply = function (beforeVersion, afterVersion, message, mat
18551846 * console.log(result)
18561847 * })
18571848 */
1858-
18591849// eslint-disable-next-line max-len
18601850WOQLClient . prototype . docHistory = function ( id , historyParams ) {
18611851 const params = historyParams || { } ;
@@ -1877,7 +1867,6 @@ WOQLClient.prototype.docHistory = function (id, historyParams) {
18771867 * console.log(result)
18781868 * })
18791869 */
1880-
18811870WOQLClient . prototype . sendCustomRequest = function ( requestType , customRequestURL , payload ) {
18821871 return this . dispatch (
18831872 requestType ,
0 commit comments