core-3nweb-client-lib 0.43.7 → 0.43.8
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/build/api-defs/files.d.ts +14 -0
- package/build/core-ipc/file.d.ts +4 -0
- package/build/core-ipc/file.js +35 -15
- package/build/core-ipc/fs.js +22 -0
- package/build/lib-client/fs-utils/files.js +4 -0
- package/build/lib-client/xsp-fs/file-node.d.ts +3 -2
- package/build/lib-client/xsp-fs/file-node.js +30 -11
- package/build/lib-client/xsp-fs/file.d.ts +1 -0
- package/build/lib-client/xsp-fs/file.js +8 -12
- package/build/lib-client/xsp-fs/folder-node.d.ts +2 -0
- package/build/lib-client/xsp-fs/folder-node.js +21 -1
- package/build/lib-client/xsp-fs/fs.d.ts +1 -0
- package/build/lib-client/xsp-fs/fs.js +8 -25
- package/build/lib-client/xsp-fs/link-node.d.ts +3 -0
- package/build/lib-client/xsp-fs/link-node.js +20 -0
- package/build/lib-client/xsp-fs/node-in-fs.d.ts +2 -1
- package/build/lib-client/xsp-fs/node-in-fs.js +0 -3
- package/build/lib-client/xsp-fs/node-persistence.d.ts +1 -0
- package/build/lib-client/xsp-fs/node-persistence.js +4 -0
- package/build/lib-common/big-endian.js +2 -2
- package/build/protos/asmail.proto.js +78 -51
- package/build/protos/file.proto.js +78 -51
- package/build/protos/fs.proto.js +78 -51
- package/package.json +1 -1
- package/protos/file.proto +7 -3
- package/protos/fs.proto +5 -1
package/build/protos/fs.proto.js
CHANGED
|
@@ -18533,9 +18533,9 @@ $root.file = (function() {
|
|
|
18533
18533
|
* Properties of an UploadingStateMsg.
|
|
18534
18534
|
* @memberof file
|
|
18535
18535
|
* @interface IUploadingStateMsg
|
|
18536
|
-
* @property {
|
|
18537
|
-
* @property {
|
|
18538
|
-
* @property {
|
|
18536
|
+
* @property {number|Long|null} [localVersion] UploadingStateMsg localVersion
|
|
18537
|
+
* @property {number|Long|null} [remoteVersion] UploadingStateMsg remoteVersion
|
|
18538
|
+
* @property {number|Long|null} [bytesLeftToUpload] UploadingStateMsg bytesLeftToUpload
|
|
18539
18539
|
* @property {boolean|null} [uploadStarted] UploadingStateMsg uploadStarted
|
|
18540
18540
|
*/
|
|
18541
18541
|
|
|
@@ -18556,27 +18556,27 @@ $root.file = (function() {
|
|
|
18556
18556
|
|
|
18557
18557
|
/**
|
|
18558
18558
|
* UploadingStateMsg localVersion.
|
|
18559
|
-
* @member {
|
|
18559
|
+
* @member {number|Long} localVersion
|
|
18560
18560
|
* @memberof file.UploadingStateMsg
|
|
18561
18561
|
* @instance
|
|
18562
18562
|
*/
|
|
18563
|
-
UploadingStateMsg.prototype.localVersion =
|
|
18563
|
+
UploadingStateMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18564
18564
|
|
|
18565
18565
|
/**
|
|
18566
18566
|
* UploadingStateMsg remoteVersion.
|
|
18567
|
-
* @member {
|
|
18567
|
+
* @member {number|Long} remoteVersion
|
|
18568
18568
|
* @memberof file.UploadingStateMsg
|
|
18569
18569
|
* @instance
|
|
18570
18570
|
*/
|
|
18571
|
-
UploadingStateMsg.prototype.remoteVersion =
|
|
18571
|
+
UploadingStateMsg.prototype.remoteVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18572
18572
|
|
|
18573
18573
|
/**
|
|
18574
18574
|
* UploadingStateMsg bytesLeftToUpload.
|
|
18575
|
-
* @member {
|
|
18575
|
+
* @member {number|Long} bytesLeftToUpload
|
|
18576
18576
|
* @memberof file.UploadingStateMsg
|
|
18577
18577
|
* @instance
|
|
18578
18578
|
*/
|
|
18579
|
-
UploadingStateMsg.prototype.bytesLeftToUpload =
|
|
18579
|
+
UploadingStateMsg.prototype.bytesLeftToUpload = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18580
18580
|
|
|
18581
18581
|
/**
|
|
18582
18582
|
* UploadingStateMsg uploadStarted.
|
|
@@ -18611,11 +18611,11 @@ $root.file = (function() {
|
|
|
18611
18611
|
if (!writer)
|
|
18612
18612
|
writer = $Writer.create();
|
|
18613
18613
|
if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
|
|
18614
|
-
|
|
18614
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.localVersion);
|
|
18615
18615
|
if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
|
|
18616
|
-
|
|
18616
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.remoteVersion);
|
|
18617
18617
|
if (message.bytesLeftToUpload != null && Object.hasOwnProperty.call(message, "bytesLeftToUpload"))
|
|
18618
|
-
|
|
18618
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.bytesLeftToUpload);
|
|
18619
18619
|
if (message.uploadStarted != null && Object.hasOwnProperty.call(message, "uploadStarted"))
|
|
18620
18620
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.uploadStarted);
|
|
18621
18621
|
return writer;
|
|
@@ -18655,15 +18655,15 @@ $root.file = (function() {
|
|
|
18655
18655
|
break;
|
|
18656
18656
|
switch (tag >>> 3) {
|
|
18657
18657
|
case 1: {
|
|
18658
|
-
message.localVersion =
|
|
18658
|
+
message.localVersion = reader.uint64();
|
|
18659
18659
|
break;
|
|
18660
18660
|
}
|
|
18661
18661
|
case 2: {
|
|
18662
|
-
message.remoteVersion =
|
|
18662
|
+
message.remoteVersion = reader.uint64();
|
|
18663
18663
|
break;
|
|
18664
18664
|
}
|
|
18665
18665
|
case 3: {
|
|
18666
|
-
message.bytesLeftToUpload =
|
|
18666
|
+
message.bytesLeftToUpload = reader.uint64();
|
|
18667
18667
|
break;
|
|
18668
18668
|
}
|
|
18669
18669
|
case 4: {
|
|
@@ -18705,21 +18705,15 @@ $root.file = (function() {
|
|
|
18705
18705
|
UploadingStateMsg.verify = function verify(message) {
|
|
18706
18706
|
if (typeof message !== "object" || message === null)
|
|
18707
18707
|
return "object expected";
|
|
18708
|
-
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
if (
|
|
18716
|
-
return "
|
|
18717
|
-
}
|
|
18718
|
-
if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload")) {
|
|
18719
|
-
var error = $root.common.UInt64Value.verify(message.bytesLeftToUpload);
|
|
18720
|
-
if (error)
|
|
18721
|
-
return "bytesLeftToUpload." + error;
|
|
18722
|
-
}
|
|
18708
|
+
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
18709
|
+
if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
|
|
18710
|
+
return "localVersion: integer|Long expected";
|
|
18711
|
+
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
18712
|
+
if (!$util.isInteger(message.remoteVersion) && !(message.remoteVersion && $util.isInteger(message.remoteVersion.low) && $util.isInteger(message.remoteVersion.high)))
|
|
18713
|
+
return "remoteVersion: integer|Long expected";
|
|
18714
|
+
if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
|
|
18715
|
+
if (!$util.isInteger(message.bytesLeftToUpload) && !(message.bytesLeftToUpload && $util.isInteger(message.bytesLeftToUpload.low) && $util.isInteger(message.bytesLeftToUpload.high)))
|
|
18716
|
+
return "bytesLeftToUpload: integer|Long expected";
|
|
18723
18717
|
if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
|
|
18724
18718
|
if (typeof message.uploadStarted !== "boolean")
|
|
18725
18719
|
return "uploadStarted: boolean expected";
|
|
@@ -18738,21 +18732,33 @@ $root.file = (function() {
|
|
|
18738
18732
|
if (object instanceof $root.file.UploadingStateMsg)
|
|
18739
18733
|
return object;
|
|
18740
18734
|
var message = new $root.file.UploadingStateMsg();
|
|
18741
|
-
if (object.localVersion != null)
|
|
18742
|
-
if (
|
|
18743
|
-
|
|
18744
|
-
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
|
|
18749
|
-
|
|
18750
|
-
|
|
18751
|
-
|
|
18752
|
-
|
|
18753
|
-
|
|
18754
|
-
|
|
18755
|
-
|
|
18735
|
+
if (object.localVersion != null)
|
|
18736
|
+
if ($util.Long)
|
|
18737
|
+
(message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
|
|
18738
|
+
else if (typeof object.localVersion === "string")
|
|
18739
|
+
message.localVersion = parseInt(object.localVersion, 10);
|
|
18740
|
+
else if (typeof object.localVersion === "number")
|
|
18741
|
+
message.localVersion = object.localVersion;
|
|
18742
|
+
else if (typeof object.localVersion === "object")
|
|
18743
|
+
message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
|
|
18744
|
+
if (object.remoteVersion != null)
|
|
18745
|
+
if ($util.Long)
|
|
18746
|
+
(message.remoteVersion = $util.Long.fromValue(object.remoteVersion)).unsigned = true;
|
|
18747
|
+
else if (typeof object.remoteVersion === "string")
|
|
18748
|
+
message.remoteVersion = parseInt(object.remoteVersion, 10);
|
|
18749
|
+
else if (typeof object.remoteVersion === "number")
|
|
18750
|
+
message.remoteVersion = object.remoteVersion;
|
|
18751
|
+
else if (typeof object.remoteVersion === "object")
|
|
18752
|
+
message.remoteVersion = new $util.LongBits(object.remoteVersion.low >>> 0, object.remoteVersion.high >>> 0).toNumber(true);
|
|
18753
|
+
if (object.bytesLeftToUpload != null)
|
|
18754
|
+
if ($util.Long)
|
|
18755
|
+
(message.bytesLeftToUpload = $util.Long.fromValue(object.bytesLeftToUpload)).unsigned = true;
|
|
18756
|
+
else if (typeof object.bytesLeftToUpload === "string")
|
|
18757
|
+
message.bytesLeftToUpload = parseInt(object.bytesLeftToUpload, 10);
|
|
18758
|
+
else if (typeof object.bytesLeftToUpload === "number")
|
|
18759
|
+
message.bytesLeftToUpload = object.bytesLeftToUpload;
|
|
18760
|
+
else if (typeof object.bytesLeftToUpload === "object")
|
|
18761
|
+
message.bytesLeftToUpload = new $util.LongBits(object.bytesLeftToUpload.low >>> 0, object.bytesLeftToUpload.high >>> 0).toNumber(true);
|
|
18756
18762
|
if (object.uploadStarted != null)
|
|
18757
18763
|
message.uploadStarted = Boolean(object.uploadStarted);
|
|
18758
18764
|
return message;
|
|
@@ -18772,17 +18778,38 @@ $root.file = (function() {
|
|
|
18772
18778
|
options = {};
|
|
18773
18779
|
var object = {};
|
|
18774
18780
|
if (options.defaults) {
|
|
18775
|
-
|
|
18776
|
-
|
|
18777
|
-
|
|
18781
|
+
if ($util.Long) {
|
|
18782
|
+
var long = new $util.Long(0, 0, true);
|
|
18783
|
+
object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18784
|
+
} else
|
|
18785
|
+
object.localVersion = options.longs === String ? "0" : 0;
|
|
18786
|
+
if ($util.Long) {
|
|
18787
|
+
var long = new $util.Long(0, 0, true);
|
|
18788
|
+
object.remoteVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18789
|
+
} else
|
|
18790
|
+
object.remoteVersion = options.longs === String ? "0" : 0;
|
|
18791
|
+
if ($util.Long) {
|
|
18792
|
+
var long = new $util.Long(0, 0, true);
|
|
18793
|
+
object.bytesLeftToUpload = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18794
|
+
} else
|
|
18795
|
+
object.bytesLeftToUpload = options.longs === String ? "0" : 0;
|
|
18778
18796
|
object.uploadStarted = false;
|
|
18779
18797
|
}
|
|
18780
18798
|
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
18781
|
-
|
|
18799
|
+
if (typeof message.localVersion === "number")
|
|
18800
|
+
object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
|
|
18801
|
+
else
|
|
18802
|
+
object.localVersion = options.longs === String ? $util.Long.prototype.toString.call(message.localVersion) : options.longs === Number ? new $util.LongBits(message.localVersion.low >>> 0, message.localVersion.high >>> 0).toNumber(true) : message.localVersion;
|
|
18782
18803
|
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
18783
|
-
|
|
18804
|
+
if (typeof message.remoteVersion === "number")
|
|
18805
|
+
object.remoteVersion = options.longs === String ? String(message.remoteVersion) : message.remoteVersion;
|
|
18806
|
+
else
|
|
18807
|
+
object.remoteVersion = options.longs === String ? $util.Long.prototype.toString.call(message.remoteVersion) : options.longs === Number ? new $util.LongBits(message.remoteVersion.low >>> 0, message.remoteVersion.high >>> 0).toNumber(true) : message.remoteVersion;
|
|
18784
18808
|
if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
|
|
18785
|
-
|
|
18809
|
+
if (typeof message.bytesLeftToUpload === "number")
|
|
18810
|
+
object.bytesLeftToUpload = options.longs === String ? String(message.bytesLeftToUpload) : message.bytesLeftToUpload;
|
|
18811
|
+
else
|
|
18812
|
+
object.bytesLeftToUpload = options.longs === String ? $util.Long.prototype.toString.call(message.bytesLeftToUpload) : options.longs === Number ? new $util.LongBits(message.bytesLeftToUpload.low >>> 0, message.bytesLeftToUpload.high >>> 0).toNumber(true) : message.bytesLeftToUpload;
|
|
18786
18813
|
if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
|
|
18787
18814
|
object.uploadStarted = message.uploadStarted;
|
|
18788
18815
|
return object;
|
package/package.json
CHANGED
package/protos/file.proto
CHANGED
|
@@ -33,9 +33,9 @@ message SyncVersionsBranchMsg {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
message UploadingStateMsg {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
uint64 local_version = 1;
|
|
37
|
+
uint64 remote_version = 2;
|
|
38
|
+
uint64 bytes_left_to_upload = 3;
|
|
39
39
|
bool upload_started = 4;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -118,6 +118,10 @@ message RequestWithVersionedReadFlags {
|
|
|
118
118
|
VersionedReadFlags flags = 1;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
// --- ReadonlyFileVersionedAPI.stat ---
|
|
122
|
+
// Request body is RequestWithVersionedReadFlags
|
|
123
|
+
// Reply body is StatsMsg
|
|
124
|
+
|
|
121
125
|
// --- ReadonlyFileVersionedAPI.getXAttr ---
|
|
122
126
|
message VersionedGetXAttrRequestBody {
|
|
123
127
|
string xa_name = 1;
|
package/protos/fs.proto
CHANGED
|
@@ -39,7 +39,7 @@ message CheckPresenceRequestBody {
|
|
|
39
39
|
|
|
40
40
|
// --- ReadonlyFS.stat ---
|
|
41
41
|
// Request body is PathOnlyRequestBody
|
|
42
|
-
// Reply body is
|
|
42
|
+
// Reply body is file.StatsMsg
|
|
43
43
|
|
|
44
44
|
message PathOnlyRequestBody {
|
|
45
45
|
string path = 1;
|
|
@@ -230,6 +230,10 @@ message CollectionEvent {
|
|
|
230
230
|
|
|
231
231
|
// ==== ReadonlyFSVersionedAPI referable object ====
|
|
232
232
|
|
|
233
|
+
// --- ReadonlyFSVersionedAPI.stat ---
|
|
234
|
+
// Request body is PathAndFlagsRequestBody
|
|
235
|
+
// Reply body is file.StatsMsg
|
|
236
|
+
|
|
233
237
|
// --- ReadonlyFSVersionedAPI.getXAttr ---
|
|
234
238
|
message VersionedGetXAttrRequestBody {
|
|
235
239
|
string path = 1;
|