core-3nweb-client-lib 0.27.4 → 0.27.6
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 +40 -10
- package/build/core/asmail/delivery/per-recipient-wip.js +2 -2
- package/build/core/asmail/inbox/inbox-events.js +10 -5
- package/build/core/asmail/inbox/index.d.ts +3 -2
- package/build/core/asmail/inbox/index.js +14 -10
- package/build/core/asmail/inbox/msg-indexing.d.ts +17 -64
- package/build/core/asmail/inbox/msg-indexing.js +440 -311
- package/build/core/asmail/inbox/msg-on-disk.js +2 -1
- package/build/core/asmail/index.js +3 -2
- package/build/core/asmail/keyring/correspondent-keys.js +3 -1
- package/build/core/asmail/keyring/index.d.ts +1 -4
- package/build/core/asmail/keyring/index.js +6 -6
- package/build/core/asmail/msg/opener.js +4 -3
- package/build/core/asmail/msg/packer.d.ts +1 -0
- package/build/core/asmail/msg/packer.js +8 -4
- package/build/core/index.js +2 -3
- package/build/core/storage/local/obj-files.js +2 -1
- package/build/core/storage/synced/storage.js +3 -2
- package/build/core/storage/synced/upload-header-file.js +4 -2
- package/build/core/storage/synced/upsyncer.js +3 -5
- package/build/ipc-via-protobuf/asmail-cap.js +14 -15
- package/build/ipc-via-protobuf/bytes.js +42 -18
- package/build/ipc-via-protobuf/file.js +43 -39
- package/build/ipc-via-protobuf/fs.js +72 -67
- package/build/ipc-via-protobuf/mailerid.js +2 -2
- package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -0
- package/build/ipc-via-protobuf/protobuf-msg.js +5 -1
- package/build/ipc-via-protobuf/startup-cap.js +8 -8
- package/build/ipc-via-protobuf/storage-cap.js +4 -4
- package/build/ipc.d.ts +1 -0
- package/build/ipc.js +3 -1
- package/build/lib-client/3nstorage/xsp-fs/common.js +2 -0
- package/build/lib-client/3nstorage/xsp-fs/file-node.js +0 -17
- package/build/lib-client/3nstorage/xsp-fs/file.d.ts +1 -1
- package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +1 -1
- package/build/lib-client/3nstorage/xsp-fs/folder-node.js +13 -7
- package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +1 -1
- package/build/lib-client/3nstorage/xsp-fs/fs.js +1 -1
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +2 -2
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +7 -3
- package/build/lib-client/3nstorage/xsp-fs/node-persistence.d.ts +1 -0
- package/build/lib-client/3nstorage/xsp-fs/node-persistence.js +7 -5
- package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v1.js +3 -4
- package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v2.js +20 -15
- package/build/lib-client/cryptor/cryptor-in-worker.js +37 -47
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-client/cryptor/in-proc-js.js +15 -12
- package/build/lib-client/cryptor/in-proc-wasm.js +11 -8
- package/build/lib-client/cryptor/serialization-for-wasm.d.ts +36 -0
- package/build/lib-client/cryptor/serialization-for-wasm.js +58 -0
- package/build/lib-client/cryptor-work-labels.d.ts +26 -0
- package/build/lib-client/cryptor-work-labels.js +152 -0
- package/build/lib-client/fs-sync-utils.d.ts +7 -1
- package/build/lib-client/fs-sync-utils.js +18 -7
- package/build/lib-client/local-files/dev-file-src.d.ts +2 -1
- package/build/lib-client/local-files/dev-file-src.js +5 -1
- package/build/lib-client/local-files/device-fs.js +2 -1
- package/build/lib-client/objs-on-disk/obj-on-disk.js +5 -1
- package/build/lib-client/request-utils.js +14 -14
- package/build/lib-common/async-cryptor-wrap.d.ts +9 -9
- package/build/lib-common/async-cryptor-wrap.js +13 -13
- package/build/lib-common/byte-streaming/pipe.d.ts +1 -1
- package/build/lib-common/byte-streaming/pipe.js +3 -3
- package/build/lib-common/byte-streaming/wrapping.js +4 -2
- package/build/lib-common/json-utils.js +0 -3
- package/build/lib-common/processes/synced.js +0 -184
- package/build/lib-sqlite-on-3nstorage/index.d.ts +32 -0
- package/build/lib-sqlite-on-3nstorage/index.js +117 -0
- package/build/lib-sqlite-on-3nstorage/sqljs.d.ts +279 -0
- package/build/lib-sqlite-on-3nstorage/sqljs.js +223 -0
- package/build/protos/asmail.proto.js +3748 -1121
- package/build/protos/bytes.proto.js +731 -204
- package/build/protos/common.proto.js +192 -44
- package/build/protos/cryptor.proto.js +184 -61
- package/build/protos/file.proto.js +1336 -324
- package/build/protos/fs.proto.js +3099 -846
- package/build/protos/ipc.proto.js +244 -61
- package/build/protos/logger.proto.js +219 -53
- package/build/protos/mailerid.proto.js +230 -50
- package/build/protos/startup.proto.js +341 -77
- package/build/protos/storage.proto.js +276 -62
- package/package.json +8 -7
- package/protos/bytes.proto +13 -4
- package/protos/file.proto +4 -1
- package/protos/fs.proto +4 -1
|
@@ -76,7 +76,7 @@ function makeFSCaller(caller, fsMsg) {
|
|
|
76
76
|
fs.writeTxtFile = writeTxtFile.makeCaller(caller, objPath);
|
|
77
77
|
}
|
|
78
78
|
if (fsMsg.isVersioned) {
|
|
79
|
-
const vPath =
|
|
79
|
+
const vPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'v');
|
|
80
80
|
fs.v = {
|
|
81
81
|
getByteSource: vGetByteSource.makeCaller(caller, vPath),
|
|
82
82
|
getXAttr: vGetXAttr.makeCaller(caller, vPath),
|
|
@@ -96,7 +96,7 @@ function makeFSCaller(caller, fsMsg) {
|
|
|
96
96
|
fs.v.archiveCurrent = vArchiveCurrent.makeCaller(caller, vPath);
|
|
97
97
|
}
|
|
98
98
|
if (fsMsg.isSynced) {
|
|
99
|
-
const vsPath =
|
|
99
|
+
const vsPath = (0, protobuf_msg_1.methodPathFor)(vPath, 'sync');
|
|
100
100
|
fs.v.sync = {
|
|
101
101
|
status: vsStatus.makeCaller(caller, vsPath),
|
|
102
102
|
updateStatusInfo: vsUpdateStatusInfo.makeCaller(caller, vsPath),
|
|
@@ -225,15 +225,15 @@ var checkPresence;
|
|
|
225
225
|
.then(buf => protobuf_msg_1.boolValType.unpack(buf).value);
|
|
226
226
|
}
|
|
227
227
|
function makeFileCaller(caller, objPath) {
|
|
228
|
-
return makeCaller(caller,
|
|
228
|
+
return makeCaller(caller, (0, protobuf_msg_1.methodPathFor)(objPath, 'checkFilePresence'));
|
|
229
229
|
}
|
|
230
230
|
checkPresence.makeFileCaller = makeFileCaller;
|
|
231
231
|
function makeFolderCaller(caller, objPath) {
|
|
232
|
-
return makeCaller(caller,
|
|
232
|
+
return makeCaller(caller, (0, protobuf_msg_1.methodPathFor)(objPath, 'checkFolderPresence'));
|
|
233
233
|
}
|
|
234
234
|
checkPresence.makeFolderCaller = makeFolderCaller;
|
|
235
235
|
function makeLinkCaller(caller, objPath) {
|
|
236
|
-
return makeCaller(caller,
|
|
236
|
+
return makeCaller(caller, (0, protobuf_msg_1.methodPathFor)(objPath, 'checkLinkPresence'));
|
|
237
237
|
}
|
|
238
238
|
checkPresence.makeLinkCaller = makeLinkCaller;
|
|
239
239
|
})(checkPresence || (checkPresence = {}));
|
|
@@ -251,7 +251,7 @@ var stat;
|
|
|
251
251
|
}
|
|
252
252
|
stat.wrapService = wrapService;
|
|
253
253
|
function makeCaller(caller, objPath) {
|
|
254
|
-
const ipcPath =
|
|
254
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'stat');
|
|
255
255
|
return path => caller
|
|
256
256
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
257
257
|
.then(file_1.unpackStats);
|
|
@@ -272,7 +272,7 @@ var getXAttr;
|
|
|
272
272
|
}
|
|
273
273
|
getXAttr.wrapService = wrapService;
|
|
274
274
|
function makeCaller(caller, objPath) {
|
|
275
|
-
const ipcPath =
|
|
275
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'getXAttr');
|
|
276
276
|
return (path, xaName) => caller
|
|
277
277
|
.startPromiseCall(ipcPath, requestType.pack({ path, xaName }))
|
|
278
278
|
.then(file_1.unpackXAttrValue);
|
|
@@ -292,7 +292,7 @@ var listXAttrs;
|
|
|
292
292
|
}
|
|
293
293
|
listXAttrs.wrapService = wrapService;
|
|
294
294
|
function makeCaller(caller, objPath) {
|
|
295
|
-
const ipcPath =
|
|
295
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'listXAttrs');
|
|
296
296
|
return path => caller
|
|
297
297
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
298
298
|
.then(buf => (0, protobuf_msg_1.fixArray)(protobuf_msg_1.strArrValType.unpack(buf).values));
|
|
@@ -371,7 +371,7 @@ var readLink;
|
|
|
371
371
|
}
|
|
372
372
|
readLink.wrapService = wrapService;
|
|
373
373
|
function makeCaller(caller, objPath) {
|
|
374
|
-
const ipcPath =
|
|
374
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'readLink');
|
|
375
375
|
return path => caller
|
|
376
376
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
377
377
|
.then(buf => {
|
|
@@ -551,12 +551,12 @@ var watch;
|
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
553
|
function makeFolderCaller(caller, objPath) {
|
|
554
|
-
const ipcPath =
|
|
554
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'watchFolder');
|
|
555
555
|
return makeCaller(caller, ipcPath, unpackFSEvent);
|
|
556
556
|
}
|
|
557
557
|
watch.makeFolderCaller = makeFolderCaller;
|
|
558
558
|
function makeFileCaller(caller, objPath) {
|
|
559
|
-
const ipcPath =
|
|
559
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'watchFile');
|
|
560
560
|
return makeCaller(caller, ipcPath, file_1.unpackFileEvent);
|
|
561
561
|
}
|
|
562
562
|
watch.makeFileCaller = makeFileCaller;
|
|
@@ -576,7 +576,7 @@ var watchTree;
|
|
|
576
576
|
}
|
|
577
577
|
watchTree.wrapService = wrapService;
|
|
578
578
|
function makeCaller(caller, objPath) {
|
|
579
|
-
const ipcPath =
|
|
579
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'watchTree');
|
|
580
580
|
return (path, depth, obs) => {
|
|
581
581
|
const s = new rxjs_1.Subject();
|
|
582
582
|
const unsub = caller.startObservableCall(ipcPath, requestType.pack({ path, depth: (0, protobuf_msg_1.toOptVal)(depth) }), s);
|
|
@@ -599,7 +599,7 @@ var close;
|
|
|
599
599
|
}
|
|
600
600
|
close.wrapService = wrapService;
|
|
601
601
|
function makeCaller(caller, objPath) {
|
|
602
|
-
const path =
|
|
602
|
+
const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'close');
|
|
603
603
|
return () => caller
|
|
604
604
|
.startPromiseCall(path, undefined);
|
|
605
605
|
}
|
|
@@ -621,7 +621,7 @@ var readonlySubRoot;
|
|
|
621
621
|
}
|
|
622
622
|
readonlySubRoot.wrapService = wrapService;
|
|
623
623
|
function makeCaller(caller, objPath) {
|
|
624
|
-
const ipcPath =
|
|
624
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'readonlySubRoot');
|
|
625
625
|
return path => caller
|
|
626
626
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
627
627
|
.then(buf => {
|
|
@@ -645,7 +645,7 @@ var listFolder;
|
|
|
645
645
|
}
|
|
646
646
|
listFolder.wrapService = wrapService;
|
|
647
647
|
function makeCaller(caller, objPath) {
|
|
648
|
-
const ipcPath =
|
|
648
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'listFolder');
|
|
649
649
|
return path => caller
|
|
650
650
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
651
651
|
.then(buf => (0, protobuf_msg_1.fixArray)(requestType.unpack(buf).entries).map(lsEntryFromMsg));
|
|
@@ -665,7 +665,7 @@ var readJSONFile;
|
|
|
665
665
|
}
|
|
666
666
|
readJSONFile.wrapService = wrapService;
|
|
667
667
|
function makeCaller(caller, objPath) {
|
|
668
|
-
const ipcPath =
|
|
668
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'readJSONFile');
|
|
669
669
|
return path => caller
|
|
670
670
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
671
671
|
.then(file_1.unpackJSON);
|
|
@@ -685,7 +685,7 @@ var readTxtFile;
|
|
|
685
685
|
}
|
|
686
686
|
readTxtFile.wrapService = wrapService;
|
|
687
687
|
function makeCaller(caller, objPath) {
|
|
688
|
-
const ipcPath =
|
|
688
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'readTxtFile');
|
|
689
689
|
return path => caller
|
|
690
690
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
691
691
|
.then(buf => (buf ? (0, protobuf_msg_1.decodeFromUtf8)(buf) : ''));
|
|
@@ -706,7 +706,7 @@ var readBytes;
|
|
|
706
706
|
}
|
|
707
707
|
readBytes.wrapService = wrapService;
|
|
708
708
|
function makeCaller(caller, objPath) {
|
|
709
|
-
const ipcPath =
|
|
709
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'readBytes');
|
|
710
710
|
return (path, start, end) => caller
|
|
711
711
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
712
712
|
path, start: (0, protobuf_msg_1.toOptVal)(start), end: (0, protobuf_msg_1.toOptVal)(end)
|
|
@@ -731,7 +731,7 @@ var getByteSource;
|
|
|
731
731
|
}
|
|
732
732
|
getByteSource.wrapService = wrapService;
|
|
733
733
|
function makeCaller(caller, objPath) {
|
|
734
|
-
const ipcPath =
|
|
734
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'getByteSource');
|
|
735
735
|
return path => caller
|
|
736
736
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
737
737
|
.then(buf => {
|
|
@@ -757,7 +757,7 @@ var readonlyFile;
|
|
|
757
757
|
}
|
|
758
758
|
readonlyFile.wrapService = wrapService;
|
|
759
759
|
function makeCaller(caller, objPath) {
|
|
760
|
-
const ipcPath =
|
|
760
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'readonlyFile');
|
|
761
761
|
return path => caller
|
|
762
762
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
763
763
|
.then(buf => {
|
|
@@ -830,7 +830,7 @@ var select;
|
|
|
830
830
|
}
|
|
831
831
|
select.wrapService = wrapService;
|
|
832
832
|
function makeCaller(caller, objPath) {
|
|
833
|
-
const ipcPath =
|
|
833
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'select');
|
|
834
834
|
return async (path, criteria) => {
|
|
835
835
|
const req = { path, criteria: criteriaToMsg(criteria) };
|
|
836
836
|
const s = new rxjs_1.Subject();
|
|
@@ -914,7 +914,7 @@ var fsCollection;
|
|
|
914
914
|
}
|
|
915
915
|
get.wrapService = wrapService;
|
|
916
916
|
function makeCaller(caller, objPath) {
|
|
917
|
-
const ipcPath =
|
|
917
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'get');
|
|
918
918
|
return name => caller
|
|
919
919
|
.startPromiseCall(ipcPath, requestType.pack({ name }))
|
|
920
920
|
.then(buf => {
|
|
@@ -945,7 +945,7 @@ var fsCollection;
|
|
|
945
945
|
}
|
|
946
946
|
getAll.wrapService = wrapService;
|
|
947
947
|
function makeCaller(caller, objPath) {
|
|
948
|
-
const ipcPath =
|
|
948
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'getAll');
|
|
949
949
|
return () => caller
|
|
950
950
|
.startPromiseCall(ipcPath, undefined)
|
|
951
951
|
.then(buf => {
|
|
@@ -1009,7 +1009,7 @@ var fsCollection;
|
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
1011
|
function makeIterNextCaller(caller, objPath) {
|
|
1012
|
-
const ipcPath =
|
|
1012
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'next');
|
|
1013
1013
|
return () => caller
|
|
1014
1014
|
.startPromiseCall(ipcPath, undefined)
|
|
1015
1015
|
.then(buf => unpackIterRes(buf, caller));
|
|
@@ -1026,7 +1026,7 @@ var fsCollection;
|
|
|
1026
1026
|
}
|
|
1027
1027
|
entries.wrapService = wrapService;
|
|
1028
1028
|
function makeCaller(caller, objPath) {
|
|
1029
|
-
const ipcPath =
|
|
1029
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'entries');
|
|
1030
1030
|
return () => caller
|
|
1031
1031
|
.startPromiseCall(ipcPath, undefined)
|
|
1032
1032
|
.then(buf => {
|
|
@@ -1071,7 +1071,7 @@ var fsCollection;
|
|
|
1071
1071
|
return event;
|
|
1072
1072
|
}
|
|
1073
1073
|
function makeCaller(caller, objPath) {
|
|
1074
|
-
const path =
|
|
1074
|
+
const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'watch');
|
|
1075
1075
|
return obs => {
|
|
1076
1076
|
const s = new rxjs_1.Subject();
|
|
1077
1077
|
const unsub = caller.startObservableCall(path, undefined, s);
|
|
@@ -1196,7 +1196,7 @@ var vGetXAttr;
|
|
|
1196
1196
|
}
|
|
1197
1197
|
vGetXAttr.wrapService = wrapService;
|
|
1198
1198
|
function makeCaller(caller, objPath) {
|
|
1199
|
-
const ipcPath =
|
|
1199
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'getXAttr');
|
|
1200
1200
|
return (path, xaName, flags) => caller
|
|
1201
1201
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1202
1202
|
path, xaName, flags: file.versionedReadFlagsToMsg(flags)
|
|
@@ -1218,7 +1218,7 @@ var vListXAttrs;
|
|
|
1218
1218
|
}
|
|
1219
1219
|
vListXAttrs.wrapService = wrapService;
|
|
1220
1220
|
function makeCaller(caller, objPath) {
|
|
1221
|
-
const ipcPath =
|
|
1221
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'listXAttrs');
|
|
1222
1222
|
return (path, flags) => caller
|
|
1223
1223
|
.startPromiseCall(ipcPath, packRequestWithPathAndFlags(path, flags))
|
|
1224
1224
|
.then(buf => {
|
|
@@ -1244,7 +1244,7 @@ var vListFolder;
|
|
|
1244
1244
|
}
|
|
1245
1245
|
vListFolder.wrapService = wrapService;
|
|
1246
1246
|
function makeCaller(caller, objPath) {
|
|
1247
|
-
const ipcPath =
|
|
1247
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'listFolder');
|
|
1248
1248
|
return (path, flags) => caller
|
|
1249
1249
|
.startPromiseCall(ipcPath, packRequestWithPathAndFlags(path, flags))
|
|
1250
1250
|
.then(buf => {
|
|
@@ -1271,7 +1271,7 @@ var vReadJSONFile;
|
|
|
1271
1271
|
}
|
|
1272
1272
|
vReadJSONFile.wrapService = wrapService;
|
|
1273
1273
|
function makeCaller(caller, objPath) {
|
|
1274
|
-
const ipcPath =
|
|
1274
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'readJSONFile');
|
|
1275
1275
|
return (path, flags) => caller
|
|
1276
1276
|
.startPromiseCall(ipcPath, packRequestWithPathAndFlags(path, flags))
|
|
1277
1277
|
.then(buf => {
|
|
@@ -1294,7 +1294,7 @@ var vReadTxtFile;
|
|
|
1294
1294
|
}
|
|
1295
1295
|
vReadTxtFile.wrapService = wrapService;
|
|
1296
1296
|
function makeCaller(caller, objPath) {
|
|
1297
|
-
const ipcPath =
|
|
1297
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'readTxtFile');
|
|
1298
1298
|
return (path, flags) => caller
|
|
1299
1299
|
.startPromiseCall(ipcPath, packRequestWithPathAndFlags(path, flags))
|
|
1300
1300
|
.then(buf => {
|
|
@@ -1318,7 +1318,7 @@ var vReadBytes;
|
|
|
1318
1318
|
}
|
|
1319
1319
|
vReadBytes.wrapService = wrapService;
|
|
1320
1320
|
function makeCaller(caller, objPath) {
|
|
1321
|
-
const ipcPath =
|
|
1321
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'readBytes');
|
|
1322
1322
|
return (path, start, end, flags) => caller
|
|
1323
1323
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1324
1324
|
path, start: (0, protobuf_msg_1.toOptVal)(start), end: (0, protobuf_msg_1.toOptVal)(end),
|
|
@@ -1344,7 +1344,7 @@ var vGetByteSource;
|
|
|
1344
1344
|
}
|
|
1345
1345
|
vGetByteSource.wrapService = wrapService;
|
|
1346
1346
|
function makeCaller(caller, objPath) {
|
|
1347
|
-
const ipcPath =
|
|
1347
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'getByteSource');
|
|
1348
1348
|
return (path, flags) => caller
|
|
1349
1349
|
.startPromiseCall(ipcPath, packRequestWithPathAndFlags(path, flags))
|
|
1350
1350
|
.then(buf => {
|
|
@@ -1376,7 +1376,7 @@ var updateXAttrs;
|
|
|
1376
1376
|
}
|
|
1377
1377
|
updateXAttrs.wrapService = wrapService;
|
|
1378
1378
|
function makeCaller(caller, objPath) {
|
|
1379
|
-
const ipcPath =
|
|
1379
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'updateXAttrs');
|
|
1380
1380
|
return (path, changes) => caller
|
|
1381
1381
|
.startPromiseCall(ipcPath, packRequest(path, changes));
|
|
1382
1382
|
}
|
|
@@ -1395,7 +1395,7 @@ var makeFolder;
|
|
|
1395
1395
|
}
|
|
1396
1396
|
makeFolder.wrapService = wrapService;
|
|
1397
1397
|
function makeCaller(caller, objPath) {
|
|
1398
|
-
const ipcPath =
|
|
1398
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'makeFolder');
|
|
1399
1399
|
return (path, exclusive) => caller
|
|
1400
1400
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1401
1401
|
path, exclusive: (0, protobuf_msg_1.toOptVal)(exclusive)
|
|
@@ -1416,7 +1416,7 @@ var deleteFolder;
|
|
|
1416
1416
|
}
|
|
1417
1417
|
deleteFolder.wrapService = wrapService;
|
|
1418
1418
|
function makeCaller(caller, objPath) {
|
|
1419
|
-
const ipcPath =
|
|
1419
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'deleteFolder');
|
|
1420
1420
|
return (path, removeContent) => caller
|
|
1421
1421
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1422
1422
|
path, removeContent: (0, protobuf_msg_1.toOptVal)(removeContent)
|
|
@@ -1436,7 +1436,7 @@ var deleteFile;
|
|
|
1436
1436
|
}
|
|
1437
1437
|
deleteFile.wrapService = wrapService;
|
|
1438
1438
|
function makeCaller(caller, objPath) {
|
|
1439
|
-
const ipcPath =
|
|
1439
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'deleteFile');
|
|
1440
1440
|
return path => caller
|
|
1441
1441
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }));
|
|
1442
1442
|
}
|
|
@@ -1454,7 +1454,7 @@ var deleteLink;
|
|
|
1454
1454
|
}
|
|
1455
1455
|
deleteLink.wrapService = wrapService;
|
|
1456
1456
|
function makeCaller(caller, objPath) {
|
|
1457
|
-
const ipcPath =
|
|
1457
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'deleteLink');
|
|
1458
1458
|
return path => caller
|
|
1459
1459
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }));
|
|
1460
1460
|
}
|
|
@@ -1473,7 +1473,7 @@ var move;
|
|
|
1473
1473
|
}
|
|
1474
1474
|
move.wrapService = wrapService;
|
|
1475
1475
|
function makeCaller(caller, objPath) {
|
|
1476
|
-
const ipcPath =
|
|
1476
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'move');
|
|
1477
1477
|
return (src, dst) => caller
|
|
1478
1478
|
.startPromiseCall(ipcPath, requestType.pack({ src, dst }));
|
|
1479
1479
|
}
|
|
@@ -1492,7 +1492,7 @@ var copyFile;
|
|
|
1492
1492
|
}
|
|
1493
1493
|
copyFile.wrapService = wrapService;
|
|
1494
1494
|
function makeCaller(caller, objPath) {
|
|
1495
|
-
const ipcPath =
|
|
1495
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'copyFile');
|
|
1496
1496
|
return (src, dst, overwrite) => caller
|
|
1497
1497
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1498
1498
|
src, dst, overwrite: (0, protobuf_msg_1.toOptVal)(overwrite)
|
|
@@ -1513,7 +1513,7 @@ var copyFolder;
|
|
|
1513
1513
|
}
|
|
1514
1514
|
copyFolder.wrapService = wrapService;
|
|
1515
1515
|
function makeCaller(caller, objPath) {
|
|
1516
|
-
const ipcPath =
|
|
1516
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'copyFolder');
|
|
1517
1517
|
return (src, dst, mergeAndOverwrite) => caller
|
|
1518
1518
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1519
1519
|
src, dst, mergeAndOverwrite: (0, protobuf_msg_1.toOptVal)(mergeAndOverwrite)
|
|
@@ -1535,7 +1535,7 @@ var saveFile;
|
|
|
1535
1535
|
}
|
|
1536
1536
|
saveFile.wrapService = wrapService;
|
|
1537
1537
|
function makeCaller(caller, objPath) {
|
|
1538
|
-
const ipcPath =
|
|
1538
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'saveFile');
|
|
1539
1539
|
return (f, dst, overwrite) => caller
|
|
1540
1540
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1541
1541
|
file: caller.srvRefOf(f), dst, overwrite: (0, protobuf_msg_1.toOptVal)(overwrite)
|
|
@@ -1557,7 +1557,7 @@ var saveFolder;
|
|
|
1557
1557
|
}
|
|
1558
1558
|
saveFolder.wrapService = wrapService;
|
|
1559
1559
|
function makeCaller(caller, objPath) {
|
|
1560
|
-
const ipcPath =
|
|
1560
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'saveFolder');
|
|
1561
1561
|
return (f, dst, overwrite) => caller
|
|
1562
1562
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1563
1563
|
folder: caller.srvRefOf(f), dst, overwrite: (0, protobuf_msg_1.toOptVal)(overwrite)
|
|
@@ -1579,7 +1579,7 @@ var link;
|
|
|
1579
1579
|
}
|
|
1580
1580
|
link.wrapService = wrapService;
|
|
1581
1581
|
function makeCaller(caller, objPath) {
|
|
1582
|
-
const ipcPath =
|
|
1582
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'link');
|
|
1583
1583
|
return (path, f) => caller
|
|
1584
1584
|
.startPromiseCall(ipcPath, requestType.pack({ path, target: caller.srvRefOf(f) }));
|
|
1585
1585
|
}
|
|
@@ -1623,7 +1623,7 @@ var writableSubRoot;
|
|
|
1623
1623
|
}
|
|
1624
1624
|
writableSubRoot.wrapService = wrapService;
|
|
1625
1625
|
function makeCaller(caller, objPath) {
|
|
1626
|
-
const ipcPath =
|
|
1626
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'writableSubRoot');
|
|
1627
1627
|
return (path, flags) => caller
|
|
1628
1628
|
.startPromiseCall(ipcPath, packPathAndFlags(path, flags))
|
|
1629
1629
|
.then(buf => {
|
|
@@ -1649,7 +1649,7 @@ var writableFile;
|
|
|
1649
1649
|
}
|
|
1650
1650
|
writableFile.wrapService = wrapService;
|
|
1651
1651
|
function makeCaller(caller, objPath) {
|
|
1652
|
-
const ipcPath =
|
|
1652
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'writableFile');
|
|
1653
1653
|
return (path, flags) => caller
|
|
1654
1654
|
.startPromiseCall(ipcPath, packPathAndFlags(path, flags))
|
|
1655
1655
|
.then(buf => {
|
|
@@ -1672,7 +1672,7 @@ var writeJSONFile;
|
|
|
1672
1672
|
}
|
|
1673
1673
|
writeJSONFile.wrapService = wrapService;
|
|
1674
1674
|
function makeCaller(caller, objPath) {
|
|
1675
|
-
const ipcPath =
|
|
1675
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeJSONFile');
|
|
1676
1676
|
return (path, json, flags) => caller
|
|
1677
1677
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1678
1678
|
path, json: JSON.stringify(json), flags: optFlagsToMsg(flags)
|
|
@@ -1693,7 +1693,7 @@ var writeTxtFile;
|
|
|
1693
1693
|
}
|
|
1694
1694
|
writeTxtFile.wrapService = wrapService;
|
|
1695
1695
|
function makeCaller(caller, objPath) {
|
|
1696
|
-
const ipcPath =
|
|
1696
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeTxtFile');
|
|
1697
1697
|
return (path, txt, flags) => caller
|
|
1698
1698
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1699
1699
|
path, txt, flags: optFlagsToMsg(flags)
|
|
@@ -1714,7 +1714,7 @@ var writeBytes;
|
|
|
1714
1714
|
}
|
|
1715
1715
|
writeBytes.wrapService = wrapService;
|
|
1716
1716
|
function makeCaller(caller, objPath) {
|
|
1717
|
-
const ipcPath =
|
|
1717
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeBytes');
|
|
1718
1718
|
return (path, bytes, flags) => caller
|
|
1719
1719
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1720
1720
|
path, bytes: bytes, flags: optFlagsToMsg(flags)
|
|
@@ -1738,7 +1738,7 @@ var getByteSink;
|
|
|
1738
1738
|
}
|
|
1739
1739
|
getByteSink.wrapService = wrapService;
|
|
1740
1740
|
function makeCaller(caller, objPath) {
|
|
1741
|
-
const ipcPath =
|
|
1741
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'getByteSink');
|
|
1742
1742
|
return (path, flags) => caller
|
|
1743
1743
|
.startPromiseCall(ipcPath, packPathAndFlags(path, flags))
|
|
1744
1744
|
.then(buf => {
|
|
@@ -1761,7 +1761,7 @@ var vUpdateXAttrs;
|
|
|
1761
1761
|
}
|
|
1762
1762
|
vUpdateXAttrs.wrapService = wrapService;
|
|
1763
1763
|
function makeCaller(caller, objPath) {
|
|
1764
|
-
const ipcPath =
|
|
1764
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'updateXAttrs');
|
|
1765
1765
|
return (path, changes) => caller
|
|
1766
1766
|
.startPromiseCall(ipcPath, updateXAttrs.packRequest(path, changes))
|
|
1767
1767
|
.then(protobuf_msg_1.unpackInt);
|
|
@@ -1798,7 +1798,7 @@ var vWriteJSONFile;
|
|
|
1798
1798
|
}
|
|
1799
1799
|
vWriteJSONFile.wrapService = wrapService;
|
|
1800
1800
|
function makeCaller(caller, objPath) {
|
|
1801
|
-
const ipcPath =
|
|
1801
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeJSONFile');
|
|
1802
1802
|
return (path, json, flags) => caller
|
|
1803
1803
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1804
1804
|
path, json: JSON.stringify(json), flags: optVerFlagsToMsg(flags)
|
|
@@ -1821,7 +1821,7 @@ var vWriteTxtFile;
|
|
|
1821
1821
|
}
|
|
1822
1822
|
vWriteTxtFile.wrapService = wrapService;
|
|
1823
1823
|
function makeCaller(caller, objPath) {
|
|
1824
|
-
const ipcPath =
|
|
1824
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeTxtFile');
|
|
1825
1825
|
return (path, txt, flags) => caller
|
|
1826
1826
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1827
1827
|
path, txt, flags: optVerFlagsToMsg(flags)
|
|
@@ -1844,7 +1844,7 @@ var vWriteBytes;
|
|
|
1844
1844
|
}
|
|
1845
1845
|
vWriteBytes.wrapService = wrapService;
|
|
1846
1846
|
function makeCaller(caller, objPath) {
|
|
1847
|
-
const ipcPath =
|
|
1847
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'writeBytes');
|
|
1848
1848
|
return (path, bytes, flags) => caller
|
|
1849
1849
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1850
1850
|
path, bytes: bytes, flags: optVerFlagsToMsg(flags)
|
|
@@ -1870,7 +1870,7 @@ var vGetByteSink;
|
|
|
1870
1870
|
}
|
|
1871
1871
|
vGetByteSink.wrapService = wrapService;
|
|
1872
1872
|
function makeCaller(caller, objPath) {
|
|
1873
|
-
const ipcPath =
|
|
1873
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'getByteSink');
|
|
1874
1874
|
return (path, flags) => caller
|
|
1875
1875
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1876
1876
|
path, flags: optVerFlagsToMsg(flags)
|
|
@@ -1895,7 +1895,7 @@ var vsStatus;
|
|
|
1895
1895
|
}
|
|
1896
1896
|
vsStatus.wrapService = wrapService;
|
|
1897
1897
|
function makeCaller(caller, objPath) {
|
|
1898
|
-
const ipcPath =
|
|
1898
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'status');
|
|
1899
1899
|
return (path) => caller
|
|
1900
1900
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
1901
1901
|
.then(file.unpackSyncStatus);
|
|
@@ -1915,7 +1915,7 @@ var vsUpdateStatusInfo;
|
|
|
1915
1915
|
}
|
|
1916
1916
|
vsUpdateStatusInfo.wrapService = wrapService;
|
|
1917
1917
|
function makeCaller(caller, objPath) {
|
|
1918
|
-
const ipcPath =
|
|
1918
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'updateStatusInfo');
|
|
1919
1919
|
return (path) => caller
|
|
1920
1920
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
1921
1921
|
.then(file.unpackSyncStatus);
|
|
@@ -1937,7 +1937,7 @@ var vsIsRemoteVersionOnDisk;
|
|
|
1937
1937
|
}
|
|
1938
1938
|
vsIsRemoteVersionOnDisk.wrapService = wrapService;
|
|
1939
1939
|
function makeCaller(caller, objPath) {
|
|
1940
|
-
const ipcPath =
|
|
1940
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'isRemoteVersionOnDisk');
|
|
1941
1941
|
return (path, version) => caller
|
|
1942
1942
|
.startPromiseCall(ipcPath, requestType.pack({ path, version }))
|
|
1943
1943
|
.then(buf => replyType.unpack(buf).status);
|
|
@@ -1957,7 +1957,7 @@ var vsDownload;
|
|
|
1957
1957
|
}
|
|
1958
1958
|
vsDownload.wrapService = wrapService;
|
|
1959
1959
|
function makeCaller(caller, objPath) {
|
|
1960
|
-
const ipcPath =
|
|
1960
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'download');
|
|
1961
1961
|
return (path, version) => caller
|
|
1962
1962
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1963
1963
|
path, version
|
|
@@ -1969,20 +1969,25 @@ Object.freeze(vsDownload);
|
|
|
1969
1969
|
var vsUpload;
|
|
1970
1970
|
(function (vsUpload) {
|
|
1971
1971
|
const requestType = protobuf_type_1.ProtoType.for(fs_proto_1.fs.FSSyncUploadRequestBody);
|
|
1972
|
+
const replyType = protobuf_type_1.ProtoType.for(fs_proto_1.fs.FSSyncUploadReplyBody);
|
|
1972
1973
|
function wrapService(fn) {
|
|
1973
1974
|
return buf => {
|
|
1974
1975
|
const { path, opts } = requestType.unpack(buf);
|
|
1975
|
-
const promise = fn(path, file.optionsToUploadLocalFromMsg(opts))
|
|
1976
|
+
const promise = fn(path, file.optionsToUploadLocalFromMsg(opts))
|
|
1977
|
+
.then(uploadedVersion => replyType.pack({
|
|
1978
|
+
uploadedVersion: (0, protobuf_msg_1.toOptVal)(uploadedVersion)
|
|
1979
|
+
}));
|
|
1976
1980
|
return { promise };
|
|
1977
1981
|
};
|
|
1978
1982
|
}
|
|
1979
1983
|
vsUpload.wrapService = wrapService;
|
|
1980
1984
|
function makeCaller(caller, objPath) {
|
|
1981
|
-
const ipcPath =
|
|
1985
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'upload');
|
|
1982
1986
|
return (path, opts) => caller
|
|
1983
1987
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
1984
1988
|
path, opts: file.optionsToUploadLocalToMsg(opts)
|
|
1985
|
-
}))
|
|
1989
|
+
}))
|
|
1990
|
+
.then(buf => (0, protobuf_msg_1.valOfOptInt)(replyType.unpack(buf).uploadedVersion));
|
|
1986
1991
|
}
|
|
1987
1992
|
vsUpload.makeCaller = makeCaller;
|
|
1988
1993
|
})(vsUpload || (vsUpload = {}));
|
|
@@ -2020,7 +2025,7 @@ var vsAdoptRemoteFolderItem;
|
|
|
2020
2025
|
}
|
|
2021
2026
|
vsAdoptRemoteFolderItem.wrapService = wrapService;
|
|
2022
2027
|
function makeCaller(caller, objPath) {
|
|
2023
|
-
const ipcPath =
|
|
2028
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'adoptRemoteFolderItem');
|
|
2024
2029
|
return (path, itemName, opts) => caller
|
|
2025
2030
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
2026
2031
|
path, itemName, opts: optionsToAdoptRemoteItemToMsg(opts)
|
|
@@ -2042,7 +2047,7 @@ var vsAdoptRemote;
|
|
|
2042
2047
|
}
|
|
2043
2048
|
vsAdoptRemote.wrapService = wrapService;
|
|
2044
2049
|
function makeCaller(caller, objPath) {
|
|
2045
|
-
const ipcPath =
|
|
2050
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'adoptRemote');
|
|
2046
2051
|
return (path, opts) => caller
|
|
2047
2052
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
2048
2053
|
path, opts: file.remoteAdoptionOptsToMsg(opts)
|
|
@@ -2063,7 +2068,7 @@ var vListVersions;
|
|
|
2063
2068
|
}
|
|
2064
2069
|
vListVersions.wrapService = wrapService;
|
|
2065
2070
|
function makeCaller(caller, objPath) {
|
|
2066
|
-
const ipcPath =
|
|
2071
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'listVersions');
|
|
2067
2072
|
return path => caller
|
|
2068
2073
|
.startPromiseCall(ipcPath, reqWithPathType.pack({ path }))
|
|
2069
2074
|
.then(file.vListVersions.unpackReply);
|
|
@@ -2084,7 +2089,7 @@ var vArchiveCurrent;
|
|
|
2084
2089
|
}
|
|
2085
2090
|
vArchiveCurrent.wrapService = wrapService;
|
|
2086
2091
|
function makeCaller(caller, objPath) {
|
|
2087
|
-
const ipcPath =
|
|
2092
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'archiveCurrent');
|
|
2088
2093
|
return (path, version) => caller
|
|
2089
2094
|
.startPromiseCall(ipcPath, requestType.pack({ path, version: (0, protobuf_msg_1.toOptVal)(version) }))
|
|
2090
2095
|
.then(protobuf_msg_1.unpackInt);
|
|
@@ -2168,7 +2173,7 @@ var vsDiffCurrentAndRemoteFolderVersions;
|
|
|
2168
2173
|
}
|
|
2169
2174
|
vsDiffCurrentAndRemoteFolderVersions.wrapService = wrapService;
|
|
2170
2175
|
function makeCaller(caller, objPath) {
|
|
2171
|
-
const ipcPath =
|
|
2176
|
+
const ipcPath = (0, protobuf_msg_1.methodPathFor)(objPath, 'diffCurrentAndRemoteFolderVersions');
|
|
2172
2177
|
return (path, remoteVersion) => caller
|
|
2173
2178
|
.startPromiseCall(ipcPath, requestType.pack({
|
|
2174
2179
|
path, remoteVersion: (0, protobuf_msg_1.toOptVal)(remoteVersion)
|
|
@@ -46,7 +46,7 @@ var getUserId;
|
|
|
46
46
|
}
|
|
47
47
|
getUserId.wrapService = wrapService;
|
|
48
48
|
function makeCaller(caller, objPath) {
|
|
49
|
-
const path =
|
|
49
|
+
const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'getUserId');
|
|
50
50
|
return () => caller.startPromiseCall(path, undefined)
|
|
51
51
|
.then(buf => {
|
|
52
52
|
if (!buf) {
|
|
@@ -72,7 +72,7 @@ var login;
|
|
|
72
72
|
}
|
|
73
73
|
login.wrapService = wrapService;
|
|
74
74
|
function makeCaller(caller, objPath) {
|
|
75
|
-
const path =
|
|
75
|
+
const path = (0, protobuf_msg_1.methodPathFor)(objPath, 'login');
|
|
76
76
|
return async (serviceUrl) => {
|
|
77
77
|
const req = requestType.pack({ serviceUrl });
|
|
78
78
|
const buf = await caller.startPromiseCall(path, req);
|
|
@@ -45,4 +45,5 @@ export declare function toOptAny(value: any | undefined): AnyValue | undefined;
|
|
|
45
45
|
export declare function valOfOptAny(valObj: AnyValue | undefined): any | undefined;
|
|
46
46
|
export declare function encodeToUtf8(str: string): Uint8Array;
|
|
47
47
|
export declare function decodeFromUtf8(bytes: Uint8Array): string;
|
|
48
|
+
export declare function methodPathFor<T>(objPath: string[], method: keyof T): string[];
|
|
48
49
|
export {};
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.decodeFromUtf8 = exports.encodeToUtf8 = exports.valOfOptAny = exports.toOptAny = exports.toOptJson = exports.valOfOptJson = exports.valOfOpt = exports.intValOf = exports.valOf = exports.toOptVal = exports.toVal = exports.errFromMsg = exports.errToMsg = exports.errBodyType = exports.unpackInt = exports.packInt = exports.valOfOptInt = exports.fixInt = exports.fixArray = exports.strArrValType = exports.boolValType = exports.objRefType = void 0;
|
|
19
|
+
exports.methodPathFor = exports.decodeFromUtf8 = exports.encodeToUtf8 = exports.valOfOptAny = exports.toOptAny = exports.toOptJson = exports.valOfOptJson = exports.valOfOpt = exports.intValOf = exports.valOf = exports.toOptVal = exports.toVal = exports.errFromMsg = exports.errToMsg = exports.errBodyType = exports.unpackInt = exports.packInt = exports.valOfOptInt = exports.fixInt = exports.fixArray = exports.strArrValType = exports.boolValType = exports.objRefType = void 0;
|
|
20
20
|
const connector_1 = require("./connector");
|
|
21
21
|
const error_1 = require("../lib-common/exceptions/error");
|
|
22
22
|
const buffer_utils_1 = require("../lib-common/buffer-utils");
|
|
@@ -166,4 +166,8 @@ function decodeFromUtf8(bytes) {
|
|
|
166
166
|
return dec.decode(bytes);
|
|
167
167
|
}
|
|
168
168
|
exports.decodeFromUtf8 = decodeFromUtf8;
|
|
169
|
+
function methodPathFor(objPath, method) {
|
|
170
|
+
return objPath.concat(method);
|
|
171
|
+
}
|
|
172
|
+
exports.methodPathFor = methodPathFor;
|
|
169
173
|
Object.freeze(exports);
|