@eluvio/elv-client-js 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ElvClient.js +18 -4
- package/src/FrameClient.js +2 -1
package/package.json
CHANGED
package/src/ElvClient.js
CHANGED
|
@@ -126,7 +126,8 @@ class ElvClient {
|
|
|
126
126
|
*
|
|
127
127
|
* @namedParams
|
|
128
128
|
* @param {string} contentSpaceId - ID of the content space
|
|
129
|
-
* @param {string}
|
|
129
|
+
* @param {string} networkId - ID of the blockchain network
|
|
130
|
+
* @param {string} networkName - Name of the blockchain network
|
|
130
131
|
* @param {number} fabricVersion - The version of the target content fabric
|
|
131
132
|
* @param {Array<string>} fabricURIs - A list of full URIs to content fabric nodes
|
|
132
133
|
* @param {Array<string>} ethereumURIs - A list of full URIs to ethereum nodes
|
|
@@ -491,17 +492,18 @@ class ElvClient {
|
|
|
491
492
|
}
|
|
492
493
|
|
|
493
494
|
/**
|
|
494
|
-
* Retrieve the fabric and
|
|
495
|
+
* Retrieve the fabric, ethereum, auth service, and search nodes currently used by the client, in preference order
|
|
495
496
|
*
|
|
496
497
|
* @methodGroup Nodes
|
|
497
498
|
*
|
|
498
|
-
* @return {Promise<Object>} - An object containing the lists of fabric and
|
|
499
|
+
* @return {Promise<Object>} - An object containing the lists of fabric, ethereum, auth service, and search urls in use by the client
|
|
499
500
|
*/
|
|
500
501
|
Nodes() {
|
|
501
502
|
return {
|
|
502
503
|
fabricURIs: this.fabricURIs,
|
|
503
504
|
ethereumURIs: this.ethereumURIs,
|
|
504
|
-
authServiceURIs: this.authServiceURIs
|
|
505
|
+
authServiceURIs: this.authServiceURIs,
|
|
506
|
+
searchURIs: this.searchURIs
|
|
505
507
|
};
|
|
506
508
|
}
|
|
507
509
|
|
|
@@ -1054,6 +1056,18 @@ class ElvClient {
|
|
|
1054
1056
|
);
|
|
1055
1057
|
}
|
|
1056
1058
|
|
|
1059
|
+
/**
|
|
1060
|
+
* Record the write token with node url to the HttpClient
|
|
1061
|
+
*
|
|
1062
|
+
* @param {string} writeToken - Write token to be cached
|
|
1063
|
+
* @param {string=} nodeUrlStr - If provided, this node url
|
|
1064
|
+
* will be associated with the provided write token, which will
|
|
1065
|
+
* be used in subsequent HTTP calls
|
|
1066
|
+
*/
|
|
1067
|
+
RecordWriteToken(writeToken, nodeUrlStr) {
|
|
1068
|
+
this.HttpClient.RecordWriteToken(writeToken, nodeUrlStr);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1057
1071
|
/* FrameClient related */
|
|
1058
1072
|
|
|
1059
1073
|
// Whitelist of methods allowed to be called using the frame API
|
package/src/FrameClient.js
CHANGED
|
@@ -416,6 +416,7 @@ class FrameClient {
|
|
|
416
416
|
"PublicRep",
|
|
417
417
|
"PublishContentVersion",
|
|
418
418
|
"QParts",
|
|
419
|
+
"RecordWriteToken",
|
|
419
420
|
"RedeemCode",
|
|
420
421
|
"RemoveAccessGroupManager",
|
|
421
422
|
"RemoveAccessGroupMember",
|
|
@@ -480,6 +481,6 @@ class FrameClient {
|
|
|
480
481
|
}
|
|
481
482
|
|
|
482
483
|
const { UploadFiles } = require("./client/Files");
|
|
483
|
-
FrameClient.prototype.UploadFiles=UploadFiles;
|
|
484
|
+
FrameClient.prototype.UploadFiles = UploadFiles;
|
|
484
485
|
|
|
485
486
|
exports.FrameClient = FrameClient;
|