@lazycatcloud/sdk 0.1.457 → 0.1.458
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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/localdevice/ble.d.ts +414 -0
- package/dist/localdevice/ble.d.ts.map +1 -0
- package/dist/localdevice/ble.js +859 -0
- package/dist/localdevice/ble.js.map +1 -0
- package/dist/sys/OS_daemon.d.ts +133 -0
- package/dist/sys/OS_daemon.d.ts.map +1 -0
- package/dist/sys/OS_daemon.js +364 -0
- package/dist/sys/OS_daemon.js.map +1 -0
- package/dist/sys/OS_snapshot.d.ts +39 -39
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +90 -138
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +21 -21
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +44 -60
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/box-status.d.ts +603 -0
- package/dist/sys/box-status.d.ts.map +1 -0
- package/dist/sys/box-status.js +1004 -0
- package/dist/sys/box-status.js.map +1 -0
- package/dist/sys/hal.d.ts +174 -0
- package/dist/sys/hal.d.ts.map +1 -1
- package/dist/sys/hal.js +553 -1
- package/dist/sys/hal.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +6 -1
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +36 -6
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/installer.d.ts +19 -19
- package/dist/sys/installer.d.ts.map +1 -1
- package/dist/sys/installer.js +62 -85
- package/dist/sys/installer.js.map +1 -1
- package/dist/sys/package_manager.d.ts +79 -69
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +86 -121
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +39 -137
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +132 -538
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +19 -19
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +50 -72
- package/dist/sys/snapd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/sys/osupgrader.d.ts +0 -256
- package/dist/sys/osupgrader.d.ts.map +0 -1
- package/dist/sys/osupgrader.js +0 -536
- package/dist/sys/osupgrader.js.map +0 -1
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PackageManagerSubscribeAppChangeDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerSetAppCfgDesc = exports.PackageManagerGetAppCfgDesc = exports.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.GetAppDownloadProgressResponse_ProgressesEntry = exports.GetAppDownloadProgressResponse = exports.GetAppDownloadProgressRequest = exports.SubscribeAppChangeResponse = exports.SubscribeAppChangeRequest = exports.AppInstance = exports.ListFileHandlerResponse = exports.FileHandlerInfo = exports.ListFileHandlerRequest = exports.GetActionURLResponse = exports.GetActionURLRequest = exports.Appid = exports.GetUserPermissionsRequest = exports.UserPermission = exports.
|
|
7
|
-
exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerStopMySelfDesc = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc =
|
|
6
|
+
exports.PackageManagerGetAppDownloadProgressDesc = exports.PackageManagerSubscribeAppChangeDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerSetAppCfgDesc = exports.PackageManagerGetAppCfgDesc = exports.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.GetAppDownloadProgressResponse_ProgressesEntry = exports.GetAppDownloadProgressResponse = exports.GetAppDownloadProgressRequest = exports.SubscribeAppChangeResponse = exports.SubscribeAppChangeRequest = exports.AppInstance = exports.ListFileHandlerResponse = exports.FileHandlerInfo = exports.ListFileHandlerRequest = exports.GetActionURLResponse = exports.GetActionURLRequest = exports.Appid = exports.GetUserPermissionsRequest = exports.UserPermission = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.SetAppCfgRequest = exports.GetAppCfgResponse = exports.GetAppCfgRequest = exports.AppCfg = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.RestartMySelfResponse = exports.StopMySelfRequest = exports.actionToJSON = exports.actionFromJSON = exports.Action = exports.instanceStatusToJSON = exports.instanceStatusFromJSON = exports.InstanceStatus = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
|
|
7
|
+
exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerStopMySelfDesc = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = void 0;
|
|
8
8
|
/* eslint-disable */
|
|
9
9
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
10
10
|
const browser_headers_1 = require("browser-headers");
|
|
@@ -578,7 +578,9 @@ function createBaseAppInfo() {
|
|
|
578
578
|
builtin: undefined,
|
|
579
579
|
errorReason: undefined,
|
|
580
580
|
unsupportedPlatforms: [],
|
|
581
|
-
|
|
581
|
+
deployId: "",
|
|
582
|
+
subdomain: "",
|
|
583
|
+
owner: "",
|
|
582
584
|
};
|
|
583
585
|
}
|
|
584
586
|
exports.AppInfo = {
|
|
@@ -619,8 +621,14 @@ exports.AppInfo = {
|
|
|
619
621
|
for (const v of message.unsupportedPlatforms) {
|
|
620
622
|
writer.uint32(90).string(v);
|
|
621
623
|
}
|
|
622
|
-
if (message.
|
|
623
|
-
writer.uint32(
|
|
624
|
+
if (message.deployId !== "") {
|
|
625
|
+
writer.uint32(114).string(message.deployId);
|
|
626
|
+
}
|
|
627
|
+
if (message.subdomain !== "") {
|
|
628
|
+
writer.uint32(122).string(message.subdomain);
|
|
629
|
+
}
|
|
630
|
+
if (message.owner !== "") {
|
|
631
|
+
writer.uint32(130).string(message.owner);
|
|
624
632
|
}
|
|
625
633
|
return writer;
|
|
626
634
|
},
|
|
@@ -703,11 +711,23 @@ exports.AppInfo = {
|
|
|
703
711
|
}
|
|
704
712
|
message.unsupportedPlatforms.push(reader.string());
|
|
705
713
|
continue;
|
|
706
|
-
case
|
|
707
|
-
if (tag !==
|
|
714
|
+
case 14:
|
|
715
|
+
if (tag !== 114) {
|
|
716
|
+
break;
|
|
717
|
+
}
|
|
718
|
+
message.deployId = reader.string();
|
|
719
|
+
continue;
|
|
720
|
+
case 15:
|
|
721
|
+
if (tag !== 122) {
|
|
722
|
+
break;
|
|
723
|
+
}
|
|
724
|
+
message.subdomain = reader.string();
|
|
725
|
+
continue;
|
|
726
|
+
case 16:
|
|
727
|
+
if (tag !== 130) {
|
|
708
728
|
break;
|
|
709
729
|
}
|
|
710
|
-
message.
|
|
730
|
+
message.owner = reader.string();
|
|
711
731
|
continue;
|
|
712
732
|
}
|
|
713
733
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -735,7 +755,9 @@ exports.AppInfo = {
|
|
|
735
755
|
unsupportedPlatforms: Array.isArray(object === null || object === void 0 ? void 0 : object.unsupportedPlatforms)
|
|
736
756
|
? object.unsupportedPlatforms.map((e) => String(e))
|
|
737
757
|
: [],
|
|
738
|
-
|
|
758
|
+
deployId: isSet(object.deployId) ? String(object.deployId) : "",
|
|
759
|
+
subdomain: isSet(object.subdomain) ? String(object.subdomain) : "",
|
|
760
|
+
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
739
761
|
};
|
|
740
762
|
},
|
|
741
763
|
toJSON(message) {
|
|
@@ -777,8 +799,14 @@ exports.AppInfo = {
|
|
|
777
799
|
if ((_a = message.unsupportedPlatforms) === null || _a === void 0 ? void 0 : _a.length) {
|
|
778
800
|
obj.unsupportedPlatforms = message.unsupportedPlatforms;
|
|
779
801
|
}
|
|
780
|
-
if (message.
|
|
781
|
-
obj.
|
|
802
|
+
if (message.deployId !== "") {
|
|
803
|
+
obj.deployId = message.deployId;
|
|
804
|
+
}
|
|
805
|
+
if (message.subdomain !== "") {
|
|
806
|
+
obj.subdomain = message.subdomain;
|
|
807
|
+
}
|
|
808
|
+
if (message.owner !== "") {
|
|
809
|
+
obj.owner = message.owner;
|
|
782
810
|
}
|
|
783
811
|
return obj;
|
|
784
812
|
},
|
|
@@ -786,7 +814,7 @@ exports.AppInfo = {
|
|
|
786
814
|
return exports.AppInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
787
815
|
},
|
|
788
816
|
fromPartial(object) {
|
|
789
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
817
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
790
818
|
const message = createBaseAppInfo();
|
|
791
819
|
message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
|
|
792
820
|
message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -802,7 +830,9 @@ exports.AppInfo = {
|
|
|
802
830
|
message.builtin = (_j = object.builtin) !== null && _j !== void 0 ? _j : undefined;
|
|
803
831
|
message.errorReason = (_k = object.errorReason) !== null && _k !== void 0 ? _k : undefined;
|
|
804
832
|
message.unsupportedPlatforms = ((_l = object.unsupportedPlatforms) === null || _l === void 0 ? void 0 : _l.map((e) => e)) || [];
|
|
805
|
-
message.
|
|
833
|
+
message.deployId = (_m = object.deployId) !== null && _m !== void 0 ? _m : "";
|
|
834
|
+
message.subdomain = (_o = object.subdomain) !== null && _o !== void 0 ? _o : "";
|
|
835
|
+
message.owner = (_p = object.owner) !== null && _p !== void 0 ? _p : "";
|
|
806
836
|
return message;
|
|
807
837
|
},
|
|
808
838
|
};
|
|
@@ -1026,13 +1056,19 @@ exports.SetAppCfgRequest = {
|
|
|
1026
1056
|
},
|
|
1027
1057
|
};
|
|
1028
1058
|
function createBaseQueryApplicationRequest() {
|
|
1029
|
-
return {
|
|
1059
|
+
return { todoRemoveAppidList: [], otherUid: undefined, onlyOwner: undefined };
|
|
1030
1060
|
}
|
|
1031
1061
|
exports.QueryApplicationRequest = {
|
|
1032
1062
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1033
|
-
for (const v of message.
|
|
1063
|
+
for (const v of message.todoRemoveAppidList) {
|
|
1034
1064
|
writer.uint32(10).string(v);
|
|
1035
1065
|
}
|
|
1066
|
+
if (message.otherUid !== undefined) {
|
|
1067
|
+
writer.uint32(18).string(message.otherUid);
|
|
1068
|
+
}
|
|
1069
|
+
if (message.onlyOwner !== undefined) {
|
|
1070
|
+
writer.uint32(24).bool(message.onlyOwner);
|
|
1071
|
+
}
|
|
1036
1072
|
return writer;
|
|
1037
1073
|
},
|
|
1038
1074
|
decode(input, length) {
|
|
@@ -1046,7 +1082,19 @@ exports.QueryApplicationRequest = {
|
|
|
1046
1082
|
if (tag !== 10) {
|
|
1047
1083
|
break;
|
|
1048
1084
|
}
|
|
1049
|
-
message.
|
|
1085
|
+
message.todoRemoveAppidList.push(reader.string());
|
|
1086
|
+
continue;
|
|
1087
|
+
case 2:
|
|
1088
|
+
if (tag !== 18) {
|
|
1089
|
+
break;
|
|
1090
|
+
}
|
|
1091
|
+
message.otherUid = reader.string();
|
|
1092
|
+
continue;
|
|
1093
|
+
case 3:
|
|
1094
|
+
if (tag !== 24) {
|
|
1095
|
+
break;
|
|
1096
|
+
}
|
|
1097
|
+
message.onlyOwner = reader.bool();
|
|
1050
1098
|
continue;
|
|
1051
1099
|
}
|
|
1052
1100
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -1057,13 +1105,25 @@ exports.QueryApplicationRequest = {
|
|
|
1057
1105
|
return message;
|
|
1058
1106
|
},
|
|
1059
1107
|
fromJSON(object) {
|
|
1060
|
-
return {
|
|
1108
|
+
return {
|
|
1109
|
+
todoRemoveAppidList: Array.isArray(object === null || object === void 0 ? void 0 : object.todoRemoveAppidList)
|
|
1110
|
+
? object.todoRemoveAppidList.map((e) => String(e))
|
|
1111
|
+
: [],
|
|
1112
|
+
otherUid: isSet(object.otherUid) ? String(object.otherUid) : undefined,
|
|
1113
|
+
onlyOwner: isSet(object.onlyOwner) ? Boolean(object.onlyOwner) : undefined,
|
|
1114
|
+
};
|
|
1061
1115
|
},
|
|
1062
1116
|
toJSON(message) {
|
|
1063
1117
|
var _a;
|
|
1064
1118
|
const obj = {};
|
|
1065
|
-
if ((_a = message.
|
|
1066
|
-
obj.
|
|
1119
|
+
if ((_a = message.todoRemoveAppidList) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1120
|
+
obj.todoRemoveAppidList = message.todoRemoveAppidList;
|
|
1121
|
+
}
|
|
1122
|
+
if (message.otherUid !== undefined) {
|
|
1123
|
+
obj.otherUid = message.otherUid;
|
|
1124
|
+
}
|
|
1125
|
+
if (message.onlyOwner !== undefined) {
|
|
1126
|
+
obj.onlyOwner = message.onlyOwner;
|
|
1067
1127
|
}
|
|
1068
1128
|
return obj;
|
|
1069
1129
|
},
|
|
@@ -1071,9 +1131,11 @@ exports.QueryApplicationRequest = {
|
|
|
1071
1131
|
return exports.QueryApplicationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1072
1132
|
},
|
|
1073
1133
|
fromPartial(object) {
|
|
1074
|
-
var _a;
|
|
1134
|
+
var _a, _b, _c;
|
|
1075
1135
|
const message = createBaseQueryApplicationRequest();
|
|
1076
|
-
message.
|
|
1136
|
+
message.todoRemoveAppidList = ((_a = object.todoRemoveAppidList) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
1137
|
+
message.otherUid = (_b = object.otherUid) !== null && _b !== void 0 ? _b : undefined;
|
|
1138
|
+
message.onlyOwner = (_c = object.onlyOwner) !== null && _c !== void 0 ? _c : undefined;
|
|
1077
1139
|
return message;
|
|
1078
1140
|
},
|
|
1079
1141
|
};
|
|
@@ -1275,7 +1337,7 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
1275
1337
|
},
|
|
1276
1338
|
};
|
|
1277
1339
|
function createBaseAppStorageUsage() {
|
|
1278
|
-
return { pkg: 0, data: 0, cache: 0, tmp: 0,
|
|
1340
|
+
return { pkg: 0, data: 0, cache: 0, tmp: 0, image: 0 };
|
|
1279
1341
|
}
|
|
1280
1342
|
exports.AppStorageUsage = {
|
|
1281
1343
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1291,9 +1353,6 @@ exports.AppStorageUsage = {
|
|
|
1291
1353
|
if (message.tmp !== 0) {
|
|
1292
1354
|
writer.uint32(32).uint64(message.tmp);
|
|
1293
1355
|
}
|
|
1294
|
-
Object.entries(message.userdata).forEach(([key, value]) => {
|
|
1295
|
-
exports.AppStorageUsage_UserdataEntry.encode({ key: key, value }, writer.uint32(42).fork()).ldelim();
|
|
1296
|
-
});
|
|
1297
1356
|
if (message.image !== 0) {
|
|
1298
1357
|
writer.uint32(48).uint64(message.image);
|
|
1299
1358
|
}
|
|
@@ -1330,15 +1389,6 @@ exports.AppStorageUsage = {
|
|
|
1330
1389
|
}
|
|
1331
1390
|
message.tmp = longToNumber(reader.uint64());
|
|
1332
1391
|
continue;
|
|
1333
|
-
case 5:
|
|
1334
|
-
if (tag !== 42) {
|
|
1335
|
-
break;
|
|
1336
|
-
}
|
|
1337
|
-
const entry5 = exports.AppStorageUsage_UserdataEntry.decode(reader, reader.uint32());
|
|
1338
|
-
if (entry5.value !== undefined) {
|
|
1339
|
-
message.userdata[entry5.key] = entry5.value;
|
|
1340
|
-
}
|
|
1341
|
-
continue;
|
|
1342
1392
|
case 6:
|
|
1343
1393
|
if (tag !== 48) {
|
|
1344
1394
|
break;
|
|
@@ -1359,12 +1409,6 @@ exports.AppStorageUsage = {
|
|
|
1359
1409
|
data: isSet(object.data) ? Number(object.data) : 0,
|
|
1360
1410
|
cache: isSet(object.cache) ? Number(object.cache) : 0,
|
|
1361
1411
|
tmp: isSet(object.tmp) ? Number(object.tmp) : 0,
|
|
1362
|
-
userdata: isObject(object.userdata)
|
|
1363
|
-
? Object.entries(object.userdata).reduce((acc, [key, value]) => {
|
|
1364
|
-
acc[key] = Number(value);
|
|
1365
|
-
return acc;
|
|
1366
|
-
}, {})
|
|
1367
|
-
: {},
|
|
1368
1412
|
image: isSet(object.image) ? Number(object.image) : 0,
|
|
1369
1413
|
};
|
|
1370
1414
|
},
|
|
@@ -1382,15 +1426,6 @@ exports.AppStorageUsage = {
|
|
|
1382
1426
|
if (message.tmp !== 0) {
|
|
1383
1427
|
obj.tmp = Math.round(message.tmp);
|
|
1384
1428
|
}
|
|
1385
|
-
if (message.userdata) {
|
|
1386
|
-
const entries = Object.entries(message.userdata);
|
|
1387
|
-
if (entries.length > 0) {
|
|
1388
|
-
obj.userdata = {};
|
|
1389
|
-
entries.forEach(([k, v]) => {
|
|
1390
|
-
obj.userdata[k] = Math.round(v);
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
1429
|
if (message.image !== 0) {
|
|
1395
1430
|
obj.image = Math.round(message.image);
|
|
1396
1431
|
}
|
|
@@ -1400,83 +1435,13 @@ exports.AppStorageUsage = {
|
|
|
1400
1435
|
return exports.AppStorageUsage.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1401
1436
|
},
|
|
1402
1437
|
fromPartial(object) {
|
|
1403
|
-
var _a, _b, _c, _d, _e
|
|
1438
|
+
var _a, _b, _c, _d, _e;
|
|
1404
1439
|
const message = createBaseAppStorageUsage();
|
|
1405
1440
|
message.pkg = (_a = object.pkg) !== null && _a !== void 0 ? _a : 0;
|
|
1406
1441
|
message.data = (_b = object.data) !== null && _b !== void 0 ? _b : 0;
|
|
1407
1442
|
message.cache = (_c = object.cache) !== null && _c !== void 0 ? _c : 0;
|
|
1408
1443
|
message.tmp = (_d = object.tmp) !== null && _d !== void 0 ? _d : 0;
|
|
1409
|
-
message.
|
|
1410
|
-
if (value !== undefined) {
|
|
1411
|
-
acc[key] = Number(value);
|
|
1412
|
-
}
|
|
1413
|
-
return acc;
|
|
1414
|
-
}, {});
|
|
1415
|
-
message.image = (_f = object.image) !== null && _f !== void 0 ? _f : 0;
|
|
1416
|
-
return message;
|
|
1417
|
-
},
|
|
1418
|
-
};
|
|
1419
|
-
function createBaseAppStorageUsage_UserdataEntry() {
|
|
1420
|
-
return { key: "", value: 0 };
|
|
1421
|
-
}
|
|
1422
|
-
exports.AppStorageUsage_UserdataEntry = {
|
|
1423
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1424
|
-
if (message.key !== "") {
|
|
1425
|
-
writer.uint32(10).string(message.key);
|
|
1426
|
-
}
|
|
1427
|
-
if (message.value !== 0) {
|
|
1428
|
-
writer.uint32(16).uint64(message.value);
|
|
1429
|
-
}
|
|
1430
|
-
return writer;
|
|
1431
|
-
},
|
|
1432
|
-
decode(input, length) {
|
|
1433
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1434
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1435
|
-
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
1436
|
-
while (reader.pos < end) {
|
|
1437
|
-
const tag = reader.uint32();
|
|
1438
|
-
switch (tag >>> 3) {
|
|
1439
|
-
case 1:
|
|
1440
|
-
if (tag !== 10) {
|
|
1441
|
-
break;
|
|
1442
|
-
}
|
|
1443
|
-
message.key = reader.string();
|
|
1444
|
-
continue;
|
|
1445
|
-
case 2:
|
|
1446
|
-
if (tag !== 16) {
|
|
1447
|
-
break;
|
|
1448
|
-
}
|
|
1449
|
-
message.value = longToNumber(reader.uint64());
|
|
1450
|
-
continue;
|
|
1451
|
-
}
|
|
1452
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1453
|
-
break;
|
|
1454
|
-
}
|
|
1455
|
-
reader.skipType(tag & 7);
|
|
1456
|
-
}
|
|
1457
|
-
return message;
|
|
1458
|
-
},
|
|
1459
|
-
fromJSON(object) {
|
|
1460
|
-
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? Number(object.value) : 0 };
|
|
1461
|
-
},
|
|
1462
|
-
toJSON(message) {
|
|
1463
|
-
const obj = {};
|
|
1464
|
-
if (message.key !== "") {
|
|
1465
|
-
obj.key = message.key;
|
|
1466
|
-
}
|
|
1467
|
-
if (message.value !== 0) {
|
|
1468
|
-
obj.value = Math.round(message.value);
|
|
1469
|
-
}
|
|
1470
|
-
return obj;
|
|
1471
|
-
},
|
|
1472
|
-
create(base) {
|
|
1473
|
-
return exports.AppStorageUsage_UserdataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1474
|
-
},
|
|
1475
|
-
fromPartial(object) {
|
|
1476
|
-
var _a, _b;
|
|
1477
|
-
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
1478
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
1479
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : 0;
|
|
1444
|
+
message.image = (_e = object.image) !== null && _e !== void 0 ? _e : 0;
|
|
1480
1445
|
return message;
|
|
1481
1446
|
},
|
|
1482
1447
|
};
|