@lazycatcloud/sdk 0.1.165 → 0.1.167
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/dist/common/appshell.d.ts +103 -0
- package/dist/common/appshell.d.ts.map +1 -0
- package/dist/common/appshell.js +265 -0
- package/dist/common/appshell.js.map +1 -0
- package/dist/common/box.d.ts +55 -13
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +106 -73
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +40 -12
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +106 -55
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +103 -16
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +141 -83
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +70 -14
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +108 -51
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +851 -53
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +509 -400
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +61 -15
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +140 -76
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +28 -9
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +66 -34
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +21 -2
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +55 -37
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +143 -20
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +162 -95
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +54 -15
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +130 -80
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +103 -25
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +240 -112
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +121 -20
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +207 -119
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/app_common.js +7 -1
- package/dist/extentions/app_common.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +54951 -4489
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +914 -663
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +2 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +8 -4
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +9 -4
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +27 -14
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/grpcweb.d.ts +1 -1
- package/dist/grpcweb.d.ts.map +1 -1
- package/dist/index.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -45
- package/dist/index.js.map +1 -1
- package/dist/lanforward/lanforward.d.ts +22 -9
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +60 -28
- package/dist/lanforward/lanforward.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +36 -13
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +92 -62
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +25 -8
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +59 -25
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +19 -7
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +48 -21
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +69 -19
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +149 -74
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +70 -18
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +179 -99
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +15 -7
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +39 -16
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +62 -17
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +129 -89
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +193 -29
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +371 -267
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +28 -9
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +71 -28
- package/dist/ssdp/ssdp.js.map +1 -1
- package/dist/sys/OS_daemon.d.ts +29 -11
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +68 -36
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +181 -33
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +331 -207
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +48 -13
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +132 -90
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/box-status.d.ts +209 -17
- package/dist/sys/box-status.d.ts.map +1 -1
- package/dist/sys/box-status.js +186 -151
- package/dist/sys/box-status.js.map +1 -1
- package/dist/sys/btrfs.d.ts +49 -15
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +103 -61
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +19 -7
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +56 -39
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +23 -8
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +56 -39
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +92 -20
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +169 -85
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +246 -34
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +287 -181
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +82 -25
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +179 -109
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/network_manager.d.ts +138 -17
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +178 -121
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +313 -43
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +437 -233
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +370 -77
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +717 -435
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +106 -19
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +177 -111
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
- package/dist/API.d.ts +0 -24
- package/dist/API.d.ts.map +0 -1
- package/dist/API.js +0 -117
- package/dist/API.js.map +0 -1
- package/dist/google/protobuf/wrappers.d.ts +0 -182
- package/dist/google/protobuf/wrappers.d.ts.map +0 -1
- package/dist/google/protobuf/wrappers.js +0 -458
- package/dist/google/protobuf/wrappers.js.map +0 -1
- package/dist/sys/message.d.ts +0 -186
- package/dist/sys/message.d.ts.map +0 -1
- package/dist/sys/message.js +0 -493
- package/dist/sys/message.js.map +0 -1
- package/dist/sys/portal-server/remote_socks.d.ts +0 -138
- package/dist/sys/portal-server/remote_socks.d.ts.map +0 -1
- package/dist/sys/portal-server/remote_socks.js +0 -436
- package/dist/sys/portal-server/remote_socks.js.map +0 -1
- package/dist/sys/settings.d.ts +0 -68
- package/dist/sys/settings.d.ts.map +0 -1
- package/dist/sys/settings.js +0 -183
- package/dist/sys/settings.js.map +0 -1
package/dist/sys/box-status.js
CHANGED
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.GrpcWebError = exports.GrpcWebImpl = exports.BoxStatusServiceFormatDesc = exports.BoxStatusServiceGetAllDesc = exports.BoxStatusServiceDesc = exports.BoxStatusServiceClientImpl = exports.BoxStatus = exports.StartupStatus = exports.Disks = exports.DataPartitionStatus = exports.DiskDetail = exports.DiskSmartInfo = exports.shutdownReasonTypeToJSON = exports.shutdownReasonTypeFromJSON = exports.ShutdownReasonType = exports.startupExceptionTypeToJSON = exports.startupExceptionTypeFromJSON = exports.StartupExceptionType = exports.startupStatusTypeToJSON = exports.startupStatusTypeFromJSON = exports.StartupStatusType = exports.dataPartitionExceptionTypeToJSON = exports.dataPartitionExceptionTypeFromJSON = exports.DataPartitionExceptionType = exports.dataPartitionStatusTypeToJSON = exports.dataPartitionStatusTypeFromJSON = exports.DataPartitionStatusType = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
9
|
-
const empty_1 = require("../google/protobuf/empty");
|
|
10
9
|
const browser_headers_1 = require("browser-headers");
|
|
11
10
|
const long_1 = __importDefault(require("long"));
|
|
12
11
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
12
|
+
const empty_1 = require("../google/protobuf/empty");
|
|
13
13
|
var DataPartitionStatusType;
|
|
14
14
|
(function (DataPartitionStatusType) {
|
|
15
15
|
/** DATA_PARTITION_STATUS_OK - 数据盘正常、分区正常、挂载正常 */
|
|
@@ -295,22 +295,29 @@ exports.DiskSmartInfo = {
|
|
|
295
295
|
return writer;
|
|
296
296
|
},
|
|
297
297
|
decode(input, length) {
|
|
298
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
298
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
299
299
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
300
300
|
const message = createBaseDiskSmartInfo();
|
|
301
301
|
while (reader.pos < end) {
|
|
302
302
|
const tag = reader.uint32();
|
|
303
303
|
switch (tag >>> 3) {
|
|
304
304
|
case 1:
|
|
305
|
+
if (tag != 8) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
305
308
|
message.temperature = reader.int32();
|
|
306
|
-
|
|
309
|
+
continue;
|
|
307
310
|
case 2:
|
|
311
|
+
if (tag != 16) {
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
308
314
|
message.usedTime = longToNumber(reader.int64());
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
318
|
+
break;
|
|
313
319
|
}
|
|
320
|
+
reader.skipType(tag & 7);
|
|
314
321
|
}
|
|
315
322
|
return message;
|
|
316
323
|
},
|
|
@@ -322,12 +329,13 @@ exports.DiskSmartInfo = {
|
|
|
322
329
|
},
|
|
323
330
|
toJSON(message) {
|
|
324
331
|
const obj = {};
|
|
325
|
-
message.temperature !== undefined &&
|
|
326
|
-
|
|
327
|
-
message.usedTime !== undefined &&
|
|
328
|
-
(obj.usedTime = Math.round(message.usedTime));
|
|
332
|
+
message.temperature !== undefined && (obj.temperature = Math.round(message.temperature));
|
|
333
|
+
message.usedTime !== undefined && (obj.usedTime = Math.round(message.usedTime));
|
|
329
334
|
return obj;
|
|
330
335
|
},
|
|
336
|
+
create(base) {
|
|
337
|
+
return exports.DiskSmartInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
338
|
+
},
|
|
331
339
|
fromPartial(object) {
|
|
332
340
|
var _a, _b;
|
|
333
341
|
const message = createBaseDiskSmartInfo();
|
|
@@ -356,41 +364,50 @@ exports.DiskDetail = {
|
|
|
356
364
|
return writer;
|
|
357
365
|
},
|
|
358
366
|
decode(input, length) {
|
|
359
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
367
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
360
368
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
361
369
|
const message = createBaseDiskDetail();
|
|
362
370
|
while (reader.pos < end) {
|
|
363
371
|
const tag = reader.uint32();
|
|
364
372
|
switch (tag >>> 3) {
|
|
365
373
|
case 1:
|
|
374
|
+
if (tag != 10) {
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
366
377
|
message.devices.push(reader.string());
|
|
367
|
-
|
|
378
|
+
continue;
|
|
368
379
|
case 2:
|
|
380
|
+
if (tag != 16) {
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
369
383
|
message.total = longToNumber(reader.uint64());
|
|
370
|
-
|
|
384
|
+
continue;
|
|
371
385
|
case 3:
|
|
386
|
+
if (tag != 24) {
|
|
387
|
+
break;
|
|
388
|
+
}
|
|
372
389
|
message.used = longToNumber(reader.uint64());
|
|
373
|
-
|
|
390
|
+
continue;
|
|
374
391
|
case 4:
|
|
392
|
+
if (tag != 34) {
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
375
395
|
message.smart = exports.DiskSmartInfo.decode(reader, reader.uint32());
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
396
|
+
continue;
|
|
397
|
+
}
|
|
398
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
399
|
+
break;
|
|
380
400
|
}
|
|
401
|
+
reader.skipType(tag & 7);
|
|
381
402
|
}
|
|
382
403
|
return message;
|
|
383
404
|
},
|
|
384
405
|
fromJSON(object) {
|
|
385
406
|
return {
|
|
386
|
-
devices: Array.isArray(object === null || object === void 0 ? void 0 : object.devices)
|
|
387
|
-
? object.devices.map((e) => String(e))
|
|
388
|
-
: [],
|
|
407
|
+
devices: Array.isArray(object === null || object === void 0 ? void 0 : object.devices) ? object.devices.map((e) => String(e)) : [],
|
|
389
408
|
total: isSet(object.total) ? Number(object.total) : 0,
|
|
390
409
|
used: isSet(object.used) ? Number(object.used) : 0,
|
|
391
|
-
smart: isSet(object.smart)
|
|
392
|
-
? exports.DiskSmartInfo.fromJSON(object.smart)
|
|
393
|
-
: undefined,
|
|
410
|
+
smart: isSet(object.smart) ? exports.DiskSmartInfo.fromJSON(object.smart) : undefined,
|
|
394
411
|
};
|
|
395
412
|
},
|
|
396
413
|
toJSON(message) {
|
|
@@ -403,22 +420,21 @@ exports.DiskDetail = {
|
|
|
403
420
|
}
|
|
404
421
|
message.total !== undefined && (obj.total = Math.round(message.total));
|
|
405
422
|
message.used !== undefined && (obj.used = Math.round(message.used));
|
|
406
|
-
message.smart !== undefined &&
|
|
407
|
-
(obj.smart = message.smart
|
|
408
|
-
? exports.DiskSmartInfo.toJSON(message.smart)
|
|
409
|
-
: undefined);
|
|
423
|
+
message.smart !== undefined && (obj.smart = message.smart ? exports.DiskSmartInfo.toJSON(message.smart) : undefined);
|
|
410
424
|
return obj;
|
|
411
425
|
},
|
|
426
|
+
create(base) {
|
|
427
|
+
return exports.DiskDetail.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
428
|
+
},
|
|
412
429
|
fromPartial(object) {
|
|
413
430
|
var _a, _b, _c;
|
|
414
431
|
const message = createBaseDiskDetail();
|
|
415
432
|
message.devices = ((_a = object.devices) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
416
433
|
message.total = (_b = object.total) !== null && _b !== void 0 ? _b : 0;
|
|
417
434
|
message.used = (_c = object.used) !== null && _c !== void 0 ? _c : 0;
|
|
418
|
-
message.smart =
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
: undefined;
|
|
435
|
+
message.smart = (object.smart !== undefined && object.smart !== null)
|
|
436
|
+
? exports.DiskSmartInfo.fromPartial(object.smart)
|
|
437
|
+
: undefined;
|
|
422
438
|
return message;
|
|
423
439
|
},
|
|
424
440
|
};
|
|
@@ -445,57 +461,63 @@ exports.DataPartitionStatus = {
|
|
|
445
461
|
return writer;
|
|
446
462
|
},
|
|
447
463
|
decode(input, length) {
|
|
448
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
464
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
449
465
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
450
466
|
const message = createBaseDataPartitionStatus();
|
|
451
467
|
while (reader.pos < end) {
|
|
452
468
|
const tag = reader.uint32();
|
|
453
469
|
switch (tag >>> 3) {
|
|
454
470
|
case 1:
|
|
471
|
+
if (tag != 8) {
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
455
474
|
message.status = reader.int32();
|
|
456
|
-
|
|
475
|
+
continue;
|
|
457
476
|
case 2:
|
|
477
|
+
if (tag != 16) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
458
480
|
message.exception = reader.int32();
|
|
459
|
-
|
|
481
|
+
continue;
|
|
460
482
|
case 3:
|
|
483
|
+
if (tag != 26) {
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
461
486
|
message.msg = reader.string();
|
|
462
|
-
|
|
487
|
+
continue;
|
|
463
488
|
case 4:
|
|
489
|
+
if (tag != 34) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
464
492
|
message.disks.push(reader.string());
|
|
465
|
-
|
|
493
|
+
continue;
|
|
466
494
|
case 5:
|
|
495
|
+
if (tag != 42) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
467
498
|
message.details.push(exports.DiskDetail.decode(reader, reader.uint32()));
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
499
|
+
continue;
|
|
500
|
+
}
|
|
501
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
502
|
+
break;
|
|
472
503
|
}
|
|
504
|
+
reader.skipType(tag & 7);
|
|
473
505
|
}
|
|
474
506
|
return message;
|
|
475
507
|
},
|
|
476
508
|
fromJSON(object) {
|
|
477
509
|
return {
|
|
478
|
-
status: isSet(object.status)
|
|
479
|
-
|
|
480
|
-
: 0,
|
|
481
|
-
exception: isSet(object.exception)
|
|
482
|
-
? dataPartitionExceptionTypeFromJSON(object.exception)
|
|
483
|
-
: 0,
|
|
510
|
+
status: isSet(object.status) ? dataPartitionStatusTypeFromJSON(object.status) : 0,
|
|
511
|
+
exception: isSet(object.exception) ? dataPartitionExceptionTypeFromJSON(object.exception) : 0,
|
|
484
512
|
msg: isSet(object.msg) ? String(object.msg) : "",
|
|
485
|
-
disks: Array.isArray(object === null || object === void 0 ? void 0 : object.disks)
|
|
486
|
-
|
|
487
|
-
: [],
|
|
488
|
-
details: Array.isArray(object === null || object === void 0 ? void 0 : object.details)
|
|
489
|
-
? object.details.map((e) => exports.DiskDetail.fromJSON(e))
|
|
490
|
-
: [],
|
|
513
|
+
disks: Array.isArray(object === null || object === void 0 ? void 0 : object.disks) ? object.disks.map((e) => String(e)) : [],
|
|
514
|
+
details: Array.isArray(object === null || object === void 0 ? void 0 : object.details) ? object.details.map((e) => exports.DiskDetail.fromJSON(e)) : [],
|
|
491
515
|
};
|
|
492
516
|
},
|
|
493
517
|
toJSON(message) {
|
|
494
518
|
const obj = {};
|
|
495
|
-
message.status !== undefined &&
|
|
496
|
-
|
|
497
|
-
message.exception !== undefined &&
|
|
498
|
-
(obj.exception = dataPartitionExceptionTypeToJSON(message.exception));
|
|
519
|
+
message.status !== undefined && (obj.status = dataPartitionStatusTypeToJSON(message.status));
|
|
520
|
+
message.exception !== undefined && (obj.exception = dataPartitionExceptionTypeToJSON(message.exception));
|
|
499
521
|
message.msg !== undefined && (obj.msg = message.msg);
|
|
500
522
|
if (message.disks) {
|
|
501
523
|
obj.disks = message.disks.map((e) => e);
|
|
@@ -511,6 +533,9 @@ exports.DataPartitionStatus = {
|
|
|
511
533
|
}
|
|
512
534
|
return obj;
|
|
513
535
|
},
|
|
536
|
+
create(base) {
|
|
537
|
+
return exports.DataPartitionStatus.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
538
|
+
},
|
|
514
539
|
fromPartial(object) {
|
|
515
540
|
var _a, _b, _c, _d, _e;
|
|
516
541
|
const message = createBaseDataPartitionStatus();
|
|
@@ -518,8 +543,7 @@ exports.DataPartitionStatus = {
|
|
|
518
543
|
message.exception = (_b = object.exception) !== null && _b !== void 0 ? _b : 0;
|
|
519
544
|
message.msg = (_c = object.msg) !== null && _c !== void 0 ? _c : "";
|
|
520
545
|
message.disks = ((_d = object.disks) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
521
|
-
message.details =
|
|
522
|
-
((_e = object.details) === null || _e === void 0 ? void 0 : _e.map((e) => exports.DiskDetail.fromPartial(e))) || [];
|
|
546
|
+
message.details = ((_e = object.details) === null || _e === void 0 ? void 0 : _e.map((e) => exports.DiskDetail.fromPartial(e))) || [];
|
|
523
547
|
return message;
|
|
524
548
|
},
|
|
525
549
|
};
|
|
@@ -534,28 +558,28 @@ exports.Disks = {
|
|
|
534
558
|
return writer;
|
|
535
559
|
},
|
|
536
560
|
decode(input, length) {
|
|
537
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
561
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
538
562
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
539
563
|
const message = createBaseDisks();
|
|
540
564
|
while (reader.pos < end) {
|
|
541
565
|
const tag = reader.uint32();
|
|
542
566
|
switch (tag >>> 3) {
|
|
543
567
|
case 1:
|
|
568
|
+
if (tag != 10) {
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
544
571
|
message.disks.push(reader.string());
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
575
|
+
break;
|
|
549
576
|
}
|
|
577
|
+
reader.skipType(tag & 7);
|
|
550
578
|
}
|
|
551
579
|
return message;
|
|
552
580
|
},
|
|
553
581
|
fromJSON(object) {
|
|
554
|
-
return {
|
|
555
|
-
disks: Array.isArray(object === null || object === void 0 ? void 0 : object.disks)
|
|
556
|
-
? object.disks.map((e) => String(e))
|
|
557
|
-
: [],
|
|
558
|
-
};
|
|
582
|
+
return { disks: Array.isArray(object === null || object === void 0 ? void 0 : object.disks) ? object.disks.map((e) => String(e)) : [] };
|
|
559
583
|
},
|
|
560
584
|
toJSON(message) {
|
|
561
585
|
const obj = {};
|
|
@@ -567,6 +591,9 @@ exports.Disks = {
|
|
|
567
591
|
}
|
|
568
592
|
return obj;
|
|
569
593
|
},
|
|
594
|
+
create(base) {
|
|
595
|
+
return exports.Disks.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
596
|
+
},
|
|
570
597
|
fromPartial(object) {
|
|
571
598
|
var _a;
|
|
572
599
|
const message = createBaseDisks();
|
|
@@ -591,51 +618,55 @@ exports.StartupStatus = {
|
|
|
591
618
|
return writer;
|
|
592
619
|
},
|
|
593
620
|
decode(input, length) {
|
|
594
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
621
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
595
622
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
596
623
|
const message = createBaseStartupStatus();
|
|
597
624
|
while (reader.pos < end) {
|
|
598
625
|
const tag = reader.uint32();
|
|
599
626
|
switch (tag >>> 3) {
|
|
600
627
|
case 1:
|
|
628
|
+
if (tag != 8) {
|
|
629
|
+
break;
|
|
630
|
+
}
|
|
601
631
|
message.status = reader.int32();
|
|
602
|
-
|
|
632
|
+
continue;
|
|
603
633
|
case 2:
|
|
634
|
+
if (tag != 16) {
|
|
635
|
+
break;
|
|
636
|
+
}
|
|
604
637
|
message.exception = reader.int32();
|
|
605
|
-
|
|
638
|
+
continue;
|
|
606
639
|
case 3:
|
|
640
|
+
if (tag != 26) {
|
|
641
|
+
break;
|
|
642
|
+
}
|
|
607
643
|
message.exceptionData = reader.string();
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
644
|
+
continue;
|
|
645
|
+
}
|
|
646
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
647
|
+
break;
|
|
612
648
|
}
|
|
649
|
+
reader.skipType(tag & 7);
|
|
613
650
|
}
|
|
614
651
|
return message;
|
|
615
652
|
},
|
|
616
653
|
fromJSON(object) {
|
|
617
654
|
return {
|
|
618
|
-
status: isSet(object.status)
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
exception: isSet(object.exception)
|
|
622
|
-
? startupExceptionTypeFromJSON(object.exception)
|
|
623
|
-
: 0,
|
|
624
|
-
exceptionData: isSet(object.exceptionData)
|
|
625
|
-
? String(object.exceptionData)
|
|
626
|
-
: "",
|
|
655
|
+
status: isSet(object.status) ? startupStatusTypeFromJSON(object.status) : 0,
|
|
656
|
+
exception: isSet(object.exception) ? startupExceptionTypeFromJSON(object.exception) : 0,
|
|
657
|
+
exceptionData: isSet(object.exceptionData) ? String(object.exceptionData) : "",
|
|
627
658
|
};
|
|
628
659
|
},
|
|
629
660
|
toJSON(message) {
|
|
630
661
|
const obj = {};
|
|
631
|
-
message.status !== undefined &&
|
|
632
|
-
|
|
633
|
-
message.
|
|
634
|
-
(obj.exception = startupExceptionTypeToJSON(message.exception));
|
|
635
|
-
message.exceptionData !== undefined &&
|
|
636
|
-
(obj.exceptionData = message.exceptionData);
|
|
662
|
+
message.status !== undefined && (obj.status = startupStatusTypeToJSON(message.status));
|
|
663
|
+
message.exception !== undefined && (obj.exception = startupExceptionTypeToJSON(message.exception));
|
|
664
|
+
message.exceptionData !== undefined && (obj.exceptionData = message.exceptionData);
|
|
637
665
|
return obj;
|
|
638
666
|
},
|
|
667
|
+
create(base) {
|
|
668
|
+
return exports.StartupStatus.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
669
|
+
},
|
|
639
670
|
fromPartial(object) {
|
|
640
671
|
var _a, _b, _c;
|
|
641
672
|
const message = createBaseStartupStatus();
|
|
@@ -674,84 +705,84 @@ exports.BoxStatus = {
|
|
|
674
705
|
return writer;
|
|
675
706
|
},
|
|
676
707
|
decode(input, length) {
|
|
677
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
708
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
678
709
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
679
710
|
const message = createBaseBoxStatus();
|
|
680
711
|
while (reader.pos < end) {
|
|
681
712
|
const tag = reader.uint32();
|
|
682
713
|
switch (tag >>> 3) {
|
|
683
714
|
case 1:
|
|
715
|
+
if (tag != 10) {
|
|
716
|
+
break;
|
|
717
|
+
}
|
|
684
718
|
message.dataPartition = exports.DataPartitionStatus.decode(reader, reader.uint32());
|
|
685
|
-
|
|
719
|
+
continue;
|
|
686
720
|
case 2:
|
|
721
|
+
if (tag != 16) {
|
|
722
|
+
break;
|
|
723
|
+
}
|
|
687
724
|
message.hasInternet = reader.bool();
|
|
688
|
-
|
|
725
|
+
continue;
|
|
689
726
|
case 3:
|
|
727
|
+
if (tag != 24) {
|
|
728
|
+
break;
|
|
729
|
+
}
|
|
690
730
|
message.hportalInitialized = reader.bool();
|
|
691
|
-
|
|
731
|
+
continue;
|
|
692
732
|
case 4:
|
|
733
|
+
if (tag != 34) {
|
|
734
|
+
break;
|
|
735
|
+
}
|
|
693
736
|
message.startupStatus = exports.StartupStatus.decode(reader, reader.uint32());
|
|
694
|
-
|
|
737
|
+
continue;
|
|
695
738
|
case 5:
|
|
739
|
+
if (tag != 40) {
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
696
742
|
message.shutdownReason = reader.int32();
|
|
697
|
-
|
|
698
|
-
default:
|
|
699
|
-
reader.skipType(tag & 7);
|
|
700
|
-
break;
|
|
743
|
+
continue;
|
|
701
744
|
}
|
|
745
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
746
|
+
break;
|
|
747
|
+
}
|
|
748
|
+
reader.skipType(tag & 7);
|
|
702
749
|
}
|
|
703
750
|
return message;
|
|
704
751
|
},
|
|
705
752
|
fromJSON(object) {
|
|
706
753
|
return {
|
|
707
|
-
dataPartition: isSet(object.dataPartition)
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
: false,
|
|
713
|
-
hportalInitialized: isSet(object.hportalInitialized)
|
|
714
|
-
? Boolean(object.hportalInitialized)
|
|
715
|
-
: false,
|
|
716
|
-
startupStatus: isSet(object.startupStatus)
|
|
717
|
-
? exports.StartupStatus.fromJSON(object.startupStatus)
|
|
718
|
-
: undefined,
|
|
719
|
-
shutdownReason: isSet(object.shutdownReason)
|
|
720
|
-
? shutdownReasonTypeFromJSON(object.shutdownReason)
|
|
721
|
-
: 0,
|
|
754
|
+
dataPartition: isSet(object.dataPartition) ? exports.DataPartitionStatus.fromJSON(object.dataPartition) : undefined,
|
|
755
|
+
hasInternet: isSet(object.hasInternet) ? Boolean(object.hasInternet) : false,
|
|
756
|
+
hportalInitialized: isSet(object.hportalInitialized) ? Boolean(object.hportalInitialized) : false,
|
|
757
|
+
startupStatus: isSet(object.startupStatus) ? exports.StartupStatus.fromJSON(object.startupStatus) : undefined,
|
|
758
|
+
shutdownReason: isSet(object.shutdownReason) ? shutdownReasonTypeFromJSON(object.shutdownReason) : 0,
|
|
722
759
|
};
|
|
723
760
|
},
|
|
724
761
|
toJSON(message) {
|
|
725
762
|
const obj = {};
|
|
726
763
|
message.dataPartition !== undefined &&
|
|
727
|
-
(obj.dataPartition = message.dataPartition
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
message.hasInternet !== undefined &&
|
|
731
|
-
(obj.hasInternet = message.hasInternet);
|
|
732
|
-
message.hportalInitialized !== undefined &&
|
|
733
|
-
(obj.hportalInitialized = message.hportalInitialized);
|
|
764
|
+
(obj.dataPartition = message.dataPartition ? exports.DataPartitionStatus.toJSON(message.dataPartition) : undefined);
|
|
765
|
+
message.hasInternet !== undefined && (obj.hasInternet = message.hasInternet);
|
|
766
|
+
message.hportalInitialized !== undefined && (obj.hportalInitialized = message.hportalInitialized);
|
|
734
767
|
message.startupStatus !== undefined &&
|
|
735
|
-
(obj.startupStatus = message.startupStatus
|
|
736
|
-
|
|
737
|
-
: undefined);
|
|
738
|
-
message.shutdownReason !== undefined &&
|
|
739
|
-
(obj.shutdownReason = shutdownReasonTypeToJSON(message.shutdownReason));
|
|
768
|
+
(obj.startupStatus = message.startupStatus ? exports.StartupStatus.toJSON(message.startupStatus) : undefined);
|
|
769
|
+
message.shutdownReason !== undefined && (obj.shutdownReason = shutdownReasonTypeToJSON(message.shutdownReason));
|
|
740
770
|
return obj;
|
|
741
771
|
},
|
|
772
|
+
create(base) {
|
|
773
|
+
return exports.BoxStatus.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
774
|
+
},
|
|
742
775
|
fromPartial(object) {
|
|
743
776
|
var _a, _b, _c;
|
|
744
777
|
const message = createBaseBoxStatus();
|
|
745
|
-
message.dataPartition =
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
: undefined;
|
|
778
|
+
message.dataPartition = (object.dataPartition !== undefined && object.dataPartition !== null)
|
|
779
|
+
? exports.DataPartitionStatus.fromPartial(object.dataPartition)
|
|
780
|
+
: undefined;
|
|
749
781
|
message.hasInternet = (_a = object.hasInternet) !== null && _a !== void 0 ? _a : false;
|
|
750
782
|
message.hportalInitialized = (_b = object.hportalInitialized) !== null && _b !== void 0 ? _b : false;
|
|
751
|
-
message.startupStatus =
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
: undefined;
|
|
783
|
+
message.startupStatus = (object.startupStatus !== undefined && object.startupStatus !== null)
|
|
784
|
+
? exports.StartupStatus.fromPartial(object.startupStatus)
|
|
785
|
+
: undefined;
|
|
755
786
|
message.shutdownReason = (_c = object.shutdownReason) !== null && _c !== void 0 ? _c : 0;
|
|
756
787
|
return message;
|
|
757
788
|
},
|
|
@@ -770,9 +801,7 @@ class BoxStatusServiceClientImpl {
|
|
|
770
801
|
}
|
|
771
802
|
}
|
|
772
803
|
exports.BoxStatusServiceClientImpl = BoxStatusServiceClientImpl;
|
|
773
|
-
exports.BoxStatusServiceDesc = {
|
|
774
|
-
serviceName: "cloud.lazycat.apis.sys.BoxStatusService",
|
|
775
|
-
};
|
|
804
|
+
exports.BoxStatusServiceDesc = { serviceName: "cloud.lazycat.apis.sys.BoxStatusService" };
|
|
776
805
|
exports.BoxStatusServiceGetAllDesc = {
|
|
777
806
|
methodName: "GetAll",
|
|
778
807
|
service: exports.BoxStatusServiceDesc,
|
|
@@ -785,8 +814,9 @@ exports.BoxStatusServiceGetAllDesc = {
|
|
|
785
814
|
},
|
|
786
815
|
responseType: {
|
|
787
816
|
deserializeBinary(data) {
|
|
788
|
-
|
|
789
|
-
|
|
817
|
+
const value = exports.BoxStatus.decode(data);
|
|
818
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
819
|
+
return value;
|
|
790
820
|
} });
|
|
791
821
|
},
|
|
792
822
|
},
|
|
@@ -803,8 +833,9 @@ exports.BoxStatusServiceFormatDesc = {
|
|
|
803
833
|
},
|
|
804
834
|
responseType: {
|
|
805
835
|
deserializeBinary(data) {
|
|
806
|
-
|
|
807
|
-
|
|
836
|
+
const value = empty_1.Empty.decode(data);
|
|
837
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
838
|
+
return value;
|
|
808
839
|
} });
|
|
809
840
|
},
|
|
810
841
|
},
|
|
@@ -829,7 +860,7 @@ class GrpcWebImpl {
|
|
|
829
860
|
debug: this.options.debug,
|
|
830
861
|
onEnd: function (response) {
|
|
831
862
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
832
|
-
resolve(response.message);
|
|
863
|
+
resolve(response.message.toObject());
|
|
833
864
|
}
|
|
834
865
|
else {
|
|
835
866
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -841,20 +872,24 @@ class GrpcWebImpl {
|
|
|
841
872
|
}
|
|
842
873
|
}
|
|
843
874
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
844
|
-
var
|
|
845
|
-
if (typeof globalThis !== "undefined")
|
|
875
|
+
var tsProtoGlobalThis = (() => {
|
|
876
|
+
if (typeof globalThis !== "undefined") {
|
|
846
877
|
return globalThis;
|
|
847
|
-
|
|
878
|
+
}
|
|
879
|
+
if (typeof self !== "undefined") {
|
|
848
880
|
return self;
|
|
849
|
-
|
|
881
|
+
}
|
|
882
|
+
if (typeof window !== "undefined") {
|
|
850
883
|
return window;
|
|
851
|
-
|
|
884
|
+
}
|
|
885
|
+
if (typeof global !== "undefined") {
|
|
852
886
|
return global;
|
|
887
|
+
}
|
|
853
888
|
throw "Unable to locate global object";
|
|
854
889
|
})();
|
|
855
890
|
function longToNumber(long) {
|
|
856
891
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
857
|
-
throw new
|
|
892
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
858
893
|
}
|
|
859
894
|
return long.toNumber();
|
|
860
895
|
}
|
|
@@ -865,7 +900,7 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
865
900
|
function isSet(value) {
|
|
866
901
|
return value !== null && value !== undefined;
|
|
867
902
|
}
|
|
868
|
-
class GrpcWebError extends Error {
|
|
903
|
+
class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
869
904
|
constructor(message, code, metadata) {
|
|
870
905
|
super(message);
|
|
871
906
|
this.code = code;
|