@@ -266,7 +266,7 @@ function probeDocumentsImpl(contentOnly, args) {
266266 }
267267 }
268268
269- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' HEAD') ;
269+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'HEAD' ) ;
270270 mlutil . addTxidHeaders ( requestOptions , txid ) ;
271271
272272 var operation = new Operation (
@@ -389,7 +389,7 @@ Documents.prototype.protect = function protectDocument() {
389389 path += '&archivePath=' + encodeURIComponent ( archivePath ) ;
390390 }
391391
392- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' POST') ;
392+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'POST' ) ;
393393
394394 var operation = new Operation (
395395 'protect document' , this . client , requestOptions , 'empty' , 'empty'
@@ -456,7 +456,7 @@ Documents.prototype.wipe = function wipeDocument() {
456456 path += '&temporal-collection=' + encodeURIComponent ( tempColl ) ;
457457 path += '&result=wiped' ;
458458
459- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' DELETE') ;
459+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'DELETE' ) ;
460460
461461 var operation = new Operation (
462462 'wipe document' , this . client , requestOptions , 'empty' , 'empty'
@@ -522,7 +522,7 @@ Documents.prototype.advanceLsqt = function temporalAdvanceLsqt() {
522522 path += '&lag=' + encodeURIComponent ( lag ) ;
523523 }
524524
525- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' POST') ;
525+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'POST' ) ;
526526
527527 var operation = new Operation (
528528 'advance LSQT' , this . client , requestOptions , 'empty' , 'empty'
@@ -707,7 +707,7 @@ function readDocumentsImpl(contentOnly, args) {
707707 categories . indexOf ( 'content' ) === - 1
708708 ) ) ;
709709
710- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' GET') ;
710+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'GET' ) ;
711711 if ( ! isSinglePayload ) {
712712 requestOptions . headers = {
713713 Accept : 'multipart/mixed; boundary=' + mlutil . multipartBoundary
@@ -842,18 +842,15 @@ function writeStreamImpl(document, categories) {
842842 /*jshint validthis:true */
843843 var endpoint = '/v1/documents' ;
844844
845- var sep = '?' ;
846-
847845 var txid = getTxid ( document ) ;
848846
849847 var writeParams = addWriteParams ( document , categories , txid ) ;
850848 if ( writeParams . length > 0 ) {
851849 endpoint += writeParams ;
852- sep = '&' ;
853850 }
854851
855852 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' ) ;
857854 requestOptions . headers = {
858855 'Content-Type' : 'multipart/mixed; boundary=' + multipartBoundary ,
859856 'Accept' : 'application/json'
@@ -1069,7 +1066,7 @@ function writeMetadata(document, categories) {
10691066 'Content-Type' : 'application/json'
10701067 } ;
10711068
1072- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , '&' , ' PUT') ;
1069+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'PUT' ) ;
10731070 requestOptions . headers = requestHeaders ;
10741071 mlutil . addTxidHeaders ( requestOptions , txid ) ;
10751072
@@ -1189,7 +1186,7 @@ function writeContent(contentOnly, document, requestParams, categories, requestT
11891186 if ( sep === '?' ) { sep = '&' ; }
11901187 }
11911188
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' ) ;
11931190 requestOptions . headers = requestHeaders ;
11941191 mlutil . addTxidHeaders ( requestOptions , txid ) ;
11951192 var operation = new Operation (
@@ -1223,10 +1220,8 @@ function writeDocumentList(contentOnly, documents, requestParams, categories) {
12231220 var txid = getTxid ( requestParams ) ;
12241221
12251222 var writeParams = addWriteParams ( requestParams , categories , txid ) ;
1226- var sep = '?' ;
12271223 if ( writeParams . length > 0 ) {
12281224 endpoint += writeParams ;
1229- sep = '&' ;
12301225 }
12311226
12321227 var multipartBoundary = mlutil . multipartBoundary ;
@@ -1236,7 +1231,7 @@ function writeDocumentList(contentOnly, documents, requestParams, categories) {
12361231 'Content-Type' : 'multipart/mixed; boundary=' + multipartBoundary
12371232 } ;
12381233
1239- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , sep , 'POST' ) ;
1234+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'POST' ) ;
12401235 requestOptions . headers = requestHeaders ;
12411236 mlutil . addTxidHeaders ( requestOptions , txid ) ;
12421237
@@ -1579,7 +1574,7 @@ function removeDocumentImpl(contentOnly, args) {
15791574 }
15801575 }
15811576
1582- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , '&' , ' DELETE') ;
1577+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , path , 'DELETE' ) ;
15831578 if ( versionId != null ) {
15841579 requestOptions . headers = {
15851580 'If-Match' : versionId
@@ -1692,7 +1687,7 @@ function removeAllDocumentsImpl(contentOnly, params) {
16921687 }
16931688 }
16941689
1695- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , sep , 'DELETE' ) ;
1690+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'DELETE' ) ;
16961691 mlutil . addTxidHeaders ( requestOptions , txid ) ;
16971692
16981693 var operation = new Operation (
@@ -1871,7 +1866,7 @@ function queryDocumentsImpl(collectionParam, contentOnly, builtQuery, timestamp,
18711866 }
18721867 }
18731868
1874- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , '&' , ' POST') ;
1869+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'POST' ) ;
18751870 requestOptions . headers = {
18761871 'Content-Type' : ( isMultipart ?
18771872 'multipart/mixed; boundary=' + multipartBoundary :
@@ -2068,7 +2063,7 @@ Documents.prototype.patch = function patchDocuments() {
20682063 patchBody . pathlang = pathlang ;
20692064 }
20702065
2071- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , '&' , ' POST') ;
2066+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'POST' ) ;
20722067 requestOptions . headers = {
20732068 'Content-Type' :
20742069 ( ( format === 'xml' ) ? 'application/xml' : 'application/json' ) ,
@@ -2194,7 +2189,7 @@ Documents.prototype.suggest = function suggestDocuments() {
21942189 endpoint += '&limit=' + limit ;
21952190 }
21962191
2197- const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , '&' , ' POST') ;
2192+ const requestOptions = mlutil . newRequestOptions ( this . client . getConnectionParams ( ) , endpoint , 'POST' ) ;
21982193 requestOptions . headers = {
21992194 'Content-Type' : 'application/json' ,
22002195 'Accept' : 'application/json' ,
@@ -2242,7 +2237,7 @@ function writeAllDocumentsImpl(inputStream,jobOptions) {
22422237
22432238 let path = '/v1/internal/forestinfo' ;
22442239 let connectionParams = this . client . getConnectionParams ( ) ;
2245- const requestOptions = mlutil . newRequestOptions ( connectionParams , path , '&' , ' GET') ;
2240+ const requestOptions = mlutil . newRequestOptions ( connectionParams , path , 'GET' ) ;
22462241
22472242 requestOptions . headers = {
22482243 'Accept' : 'application/json' ,
@@ -2493,7 +2488,7 @@ function queryAllDocumentsImpl(query, jobOptions) {
24932488 }
24942489
24952490 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' ) ;
24972492 let wrapper = { ctsast : bldrbase . exportArg ( query . whereClause ) } ;
24982493
24992494 requestOptions . headers = {
@@ -2755,7 +2750,7 @@ Documents.prototype.readAll = function readAllDocuments(stream, options) {
27552750function readAllDocumentsImpl ( inputStream , jobOptions ) {
27562751
27572752 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' ) ;
27592754
27602755 requestOptions . headers = {
27612756 'Accept' : 'application/json' ,
@@ -3335,7 +3330,7 @@ Documents.prototype.transformAll = function transformAllDocuments(stream, option
33353330
33363331function transformAllDocumentsImpl ( inputStream , jobOptions ) {
33373332 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' ) ;
33393334
33403335 requestOptions . headers = {
33413336 'Accept' : 'application/json' ,
@@ -3439,7 +3434,7 @@ function onTransformAllInit(output) {
34393434
34403435 jobState . endpoint = endpoint ;
34413436
3442- const requestOptions = mlutil . newRequestOptions ( jobState . docInstance . client . getConnectionParams ( ) , jobState . endpoint , '&' , ' POST') ;
3437+ const requestOptions = mlutil . newRequestOptions ( jobState . docInstance . client . getConnectionParams ( ) , jobState . endpoint , 'POST' ) ;
34433438 requestOptions . headers = {
34443439 'Accept' : 'text/uri-list' ,
34453440 'Content-Type' : 'text/uri-list'
@@ -3747,7 +3742,7 @@ Documents.prototype.removeAllUris = function removeAllUrisDocuments(stream, opti
37473742
37483743function removeAllUrisDocumentsImpl ( inputStream , jobOptions ) {
37493744 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' ) ;
37513746
37523747 requestOptions . headers = {
37533748 'Accept' : 'application/json' ,
0 commit comments