@@ -266,7 +266,7 @@ function probeDocumentsImpl(contentOnly, args) {
266
266
}
267
267
}
268
268
269
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' HEAD') ;
269
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'HEAD' ) ;
270
270
mlutil . addTxidHeaders ( requestOptions , txid ) ;
271
271
272
272
var operation = new Operation (
@@ -389,7 +389,7 @@ Documents.prototype.protect = function protectDocument() {
389
389
path += '&archivePath=' + encodeURIComponent ( archivePath ) ;
390
390
}
391
391
392
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' POST') ;
392
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'POST' ) ;
393
393
394
394
var operation = new Operation (
395
395
'protect document' , this . client , requestOptions , 'empty' , 'empty'
@@ -456,7 +456,7 @@ Documents.prototype.wipe = function wipeDocument() {
456
456
path += '&temporal-collection=' + encodeURIComponent ( tempColl ) ;
457
457
path += '&result=wiped' ;
458
458
459
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' DELETE') ;
459
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'DELETE' ) ;
460
460
461
461
var operation = new Operation (
462
462
'wipe document' , this . client , requestOptions , 'empty' , 'empty'
@@ -522,7 +522,7 @@ Documents.prototype.advanceLsqt = function temporalAdvanceLsqt() {
522
522
path += '&lag=' + encodeURIComponent ( lag ) ;
523
523
}
524
524
525
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' POST') ;
525
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'POST' ) ;
526
526
527
527
var operation = new Operation (
528
528
'advance LSQT' , this . client , requestOptions , 'empty' , 'empty'
@@ -707,7 +707,7 @@ function readDocumentsImpl(contentOnly, args) {
707
707
categories . indexOf ( 'content' ) === - 1
708
708
) ) ;
709
709
710
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' GET') ;
710
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'GET' ) ;
711
711
if ( ! isSinglePayload ) {
712
712
requestOptions . headers = {
713
713
Accept : 'multipart/mixed; boundary=' + mlutil . multipartBoundary
@@ -842,18 +842,15 @@ function writeStreamImpl(document, categories) {
842
842
/*jshint validthis:true */
843
843
var endpoint = '/v1/documents' ;
844
844
845
- var sep = '?' ;
846
-
847
845
var txid = getTxid ( document ) ;
848
846
849
847
var writeParams = addWriteParams ( document , categories , txid ) ;
850
848
if ( writeParams . length > 0 ) {
851
849
endpoint += writeParams ;
852
- sep = '&' ;
853
850
}
854
851
855
852
var multipartBoundary = mlutil . multipartBoundary ;
856
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , sep , 'POST' ) ;
853
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'POST' ) ;
857
854
requestOptions . headers = {
858
855
'Content-Type' : 'multipart/mixed; boundary=' + multipartBoundary ,
859
856
'Accept' : 'application/json'
@@ -1069,7 +1066,7 @@ function writeMetadata(document, categories) {
1069
1066
'Content-Type' : 'application/json'
1070
1067
} ;
1071
1068
1072
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , '&' , ' PUT') ;
1069
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'PUT' ) ;
1073
1070
requestOptions . headers = requestHeaders ;
1074
1071
mlutil . addTxidHeaders ( requestOptions , txid ) ;
1075
1072
@@ -1189,7 +1186,7 @@ function writeContent(contentOnly, document, requestParams, categories, requestT
1189
1186
if ( sep === '?' ) { sep = '&' ; }
1190
1187
}
1191
1188
1192
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , sep , hasUri ? 'PUT' : 'POST' ) ;
1189
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , hasUri ? 'PUT' : 'POST' ) ;
1193
1190
requestOptions . headers = requestHeaders ;
1194
1191
mlutil . addTxidHeaders ( requestOptions , txid ) ;
1195
1192
var operation = new Operation (
@@ -1223,10 +1220,8 @@ function writeDocumentList(contentOnly, documents, requestParams, categories) {
1223
1220
var txid = getTxid ( requestParams ) ;
1224
1221
1225
1222
var writeParams = addWriteParams ( requestParams , categories , txid ) ;
1226
- var sep = '?' ;
1227
1223
if ( writeParams . length > 0 ) {
1228
1224
endpoint += writeParams ;
1229
- sep = '&' ;
1230
1225
}
1231
1226
1232
1227
var multipartBoundary = mlutil . multipartBoundary ;
@@ -1236,7 +1231,7 @@ function writeDocumentList(contentOnly, documents, requestParams, categories) {
1236
1231
'Content-Type' : 'multipart/mixed; boundary=' + multipartBoundary
1237
1232
} ;
1238
1233
1239
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , sep , 'POST' ) ;
1234
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'POST' ) ;
1240
1235
requestOptions . headers = requestHeaders ;
1241
1236
mlutil . addTxidHeaders ( requestOptions , txid ) ;
1242
1237
@@ -1579,7 +1574,7 @@ function removeDocumentImpl(contentOnly, args) {
1579
1574
}
1580
1575
}
1581
1576
1582
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' DELETE') ;
1577
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'DELETE' ) ;
1583
1578
if ( versionId != null ) {
1584
1579
requestOptions . headers = {
1585
1580
'If-Match' : versionId
@@ -1692,7 +1687,7 @@ function removeAllDocumentsImpl(contentOnly, params) {
1692
1687
}
1693
1688
}
1694
1689
1695
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , sep , 'DELETE' ) ;
1690
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'DELETE' ) ;
1696
1691
mlutil . addTxidHeaders ( requestOptions , txid ) ;
1697
1692
1698
1693
var operation = new Operation (
@@ -1871,7 +1866,7 @@ function queryDocumentsImpl(collectionParam, contentOnly, builtQuery, timestamp,
1871
1866
}
1872
1867
}
1873
1868
1874
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , '&' , ' POST') ;
1869
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'POST' ) ;
1875
1870
requestOptions . headers = {
1876
1871
'Content-Type' : ( isMultipart ?
1877
1872
'multipart/mixed; boundary=' + multipartBoundary :
@@ -2068,7 +2063,7 @@ Documents.prototype.patch = function patchDocuments() {
2068
2063
patchBody . pathlang = pathlang ;
2069
2064
}
2070
2065
2071
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , '&' , ' POST') ;
2066
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'POST' ) ;
2072
2067
requestOptions . headers = {
2073
2068
'Content-Type' :
2074
2069
( ( format === 'xml' ) ? 'application/xml' : 'application/json' ) ,
@@ -2194,7 +2189,7 @@ Documents.prototype.suggest = function suggestDocuments() {
2194
2189
endpoint += '&limit=' + limit ;
2195
2190
}
2196
2191
2197
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , '&' , ' POST') ;
2192
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'POST' ) ;
2198
2193
requestOptions . headers = {
2199
2194
'Content-Type' : 'application/json' ,
2200
2195
'Accept' : 'application/json' ,
@@ -2242,7 +2237,7 @@ function writeAllDocumentsImpl(inputStream,jobOptions) {
2242
2237
2243
2238
let path = '/v1/internal/forestinfo' ;
2244
2239
let connectionParams = this . client . getConnectionParams ( ) ;
2245
- const requestOptions = mlutil . newRequestOptions ( connectionParams , path , '&' , ' GET') ;
2240
+ const requestOptions = mlutil . newRequestOptions ( connectionParams , path , 'GET' ) ;
2246
2241
2247
2242
requestOptions . headers = {
2248
2243
'Accept' : 'application/json' ,
@@ -2493,7 +2488,7 @@ function queryAllDocumentsImpl(query, jobOptions) {
2493
2488
}
2494
2489
2495
2490
let path = '/v1/internal/forestinfo' ;
2496
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' POST') ;
2491
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'POST' ) ;
2497
2492
let wrapper = { ctsast : bldrbase . exportArg ( query . whereClause ) } ;
2498
2493
2499
2494
requestOptions . headers = {
@@ -2755,7 +2750,7 @@ Documents.prototype.readAll = function readAllDocuments(stream, options) {
2755
2750
function readAllDocumentsImpl ( inputStream , jobOptions ) {
2756
2751
2757
2752
let path = '/v1/internal/forestinfo' ;
2758
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' GET') ;
2753
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'GET' ) ;
2759
2754
2760
2755
requestOptions . headers = {
2761
2756
'Accept' : 'application/json' ,
@@ -3335,7 +3330,7 @@ Documents.prototype.transformAll = function transformAllDocuments(stream, option
3335
3330
3336
3331
function transformAllDocumentsImpl ( inputStream , jobOptions ) {
3337
3332
let path = '/v1/internal/forestinfo' ;
3338
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' GET') ;
3333
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'GET' ) ;
3339
3334
3340
3335
requestOptions . headers = {
3341
3336
'Accept' : 'application/json' ,
@@ -3439,7 +3434,7 @@ function onTransformAllInit(output) {
3439
3434
3440
3435
jobState . endpoint = endpoint ;
3441
3436
3442
- const requestOptions = mlutil . newRequestOptions ( jobState . docInstance . client . getConnectionParams ( ) , jobState . endpoint , '&' , ' POST') ;
3437
+ const requestOptions = mlutil . newRequestOptions ( jobState . docInstance . client . getConnectionParams ( ) , jobState . endpoint , 'POST' ) ;
3443
3438
requestOptions . headers = {
3444
3439
'Accept' : 'text/uri-list' ,
3445
3440
'Content-Type' : 'text/uri-list'
@@ -3747,7 +3742,7 @@ Documents.prototype.removeAllUris = function removeAllUrisDocuments(stream, opti
3747
3742
3748
3743
function removeAllUrisDocumentsImpl ( inputStream , jobOptions ) {
3749
3744
let path = '/v1/internal/forestinfo' ;
3750
- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' GET') ;
3745
+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'GET' ) ;
3751
3746
3752
3747
requestOptions . headers = {
3753
3748
'Accept' : 'application/json' ,
0 commit comments