@lazycatcloud/sdk 0.1.458 → 0.1.459
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 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/package_manager.d.ts +445 -145
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +634 -181
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/localdevice/clipboard.d.ts +0 -137
- package/dist/localdevice/clipboard.d.ts.map +0 -1
- package/dist/localdevice/clipboard.js +0 -433
- package/dist/localdevice/clipboard.js.map +0 -1
- package/dist/sys/OS_daemon.d.ts +0 -133
- package/dist/sys/OS_daemon.d.ts.map +0 -1
- package/dist/sys/OS_daemon.js +0 -364
- package/dist/sys/OS_daemon.js.map +0 -1
- package/dist/sys/OS_snapshot.d.ts +0 -585
- package/dist/sys/OS_snapshot.d.ts.map +0 -1
- package/dist/sys/OS_snapshot.js +0 -1495
- package/dist/sys/OS_snapshot.js.map +0 -1
- package/dist/sys/OS_upgrader.d.ts +0 -202
- package/dist/sys/OS_upgrader.d.ts.map +0 -1
- package/dist/sys/OS_upgrader.js +0 -623
- package/dist/sys/OS_upgrader.js.map +0 -1
- package/dist/sys/box-status.d.ts +0 -603
- package/dist/sys/box-status.d.ts.map +0 -1
- package/dist/sys/box-status.js +0 -1004
- package/dist/sys/box-status.js.map +0 -1
- package/dist/sys/hc-core/hc-core.d.ts +0 -696
- package/dist/sys/hc-core/hc-core.d.ts.map +0 -1
- package/dist/sys/hc-core/hc-core.js +0 -1514
- package/dist/sys/hc-core/hc-core.js.map +0 -1
- package/dist/sys/installer.d.ts +0 -277
- package/dist/sys/installer.d.ts.map +0 -1
- package/dist/sys/installer.js +0 -773
- package/dist/sys/installer.js.map +0 -1
- package/dist/sys/portal-server/portal-server.d.ts +0 -849
- package/dist/sys/portal-server/portal-server.d.ts.map +0 -1
- package/dist/sys/portal-server/portal-server.js +0 -2350
- package/dist/sys/portal-server/portal-server.js.map +0 -1
- package/dist/sys/snapd.d.ts +0 -343
- package/dist/sys/snapd.d.ts.map +0 -1
- package/dist/sys/snapd.js +0 -776
- package/dist/sys/snapd.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.
|
|
7
|
-
exports.GrpcWebError = exports.GrpcWebImpl = exports.
|
|
6
|
+
exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallLPKDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.CancelPendingTaskResponse = exports.CancelPendingTaskRequest = exports.QueryPendingTaskResponse = exports.QueryPendingTaskRequest = exports.PendingTaskInfo = 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.InstallLPKResponse = exports.InstallLPKRequest = exports.InstallRequest = exports.RestartMySelfResponse = exports.StopMySelfRequest = exports.pendingTaskInfo_PendingTaskStatusToJSON = exports.pendingTaskInfo_PendingTaskStatusFromJSON = exports.PendingTaskInfo_PendingTaskStatus = 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.PackageManagerInstallDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerStopMySelfDesc = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerSubscribeAppChangeDesc = exports.PackageManagerCancelPendingTaskDesc = exports.PackageManagerQueryPendingTaskDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerSetAppCfgDesc = exports.PackageManagerGetAppCfgDesc = exports.PackageManagerClearCacheDesc = 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");
|
|
@@ -13,6 +13,7 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
|
13
13
|
const rxjs_1 = require("rxjs");
|
|
14
14
|
const operators_1 = require("rxjs/operators");
|
|
15
15
|
const empty_1 = require("../google/protobuf/empty");
|
|
16
|
+
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
16
17
|
var AppStatus;
|
|
17
18
|
(function (AppStatus) {
|
|
18
19
|
/** NotInstalled - 应用未安装 */
|
|
@@ -166,6 +167,82 @@ function actionToJSON(object) {
|
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
169
|
exports.actionToJSON = actionToJSON;
|
|
170
|
+
var PendingTaskInfo_PendingTaskStatus;
|
|
171
|
+
(function (PendingTaskInfo_PendingTaskStatus) {
|
|
172
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["Unknown"] = 0] = "Unknown";
|
|
173
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["CREATING"] = 1] = "CREATING";
|
|
174
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["DOWNLOADING"] = 2] = "DOWNLOADING";
|
|
175
|
+
/** IMAGE_PULLING - 拉取镜像中 */
|
|
176
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["IMAGE_PULLING"] = 3] = "IMAGE_PULLING";
|
|
177
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["INSTALLING"] = 4] = "INSTALLING";
|
|
178
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["PAUSED"] = 5] = "PAUSED";
|
|
179
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["DOWNLOAD_ERR"] = 6] = "DOWNLOAD_ERR";
|
|
180
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["INSTALL_ERR"] = 7] = "INSTALL_ERR";
|
|
181
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["INSTALL_OK"] = 8] = "INSTALL_OK";
|
|
182
|
+
PendingTaskInfo_PendingTaskStatus[PendingTaskInfo_PendingTaskStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
183
|
+
})(PendingTaskInfo_PendingTaskStatus = exports.PendingTaskInfo_PendingTaskStatus || (exports.PendingTaskInfo_PendingTaskStatus = {}));
|
|
184
|
+
function pendingTaskInfo_PendingTaskStatusFromJSON(object) {
|
|
185
|
+
switch (object) {
|
|
186
|
+
case 0:
|
|
187
|
+
case "Unknown":
|
|
188
|
+
return PendingTaskInfo_PendingTaskStatus.Unknown;
|
|
189
|
+
case 1:
|
|
190
|
+
case "CREATING":
|
|
191
|
+
return PendingTaskInfo_PendingTaskStatus.CREATING;
|
|
192
|
+
case 2:
|
|
193
|
+
case "DOWNLOADING":
|
|
194
|
+
return PendingTaskInfo_PendingTaskStatus.DOWNLOADING;
|
|
195
|
+
case 3:
|
|
196
|
+
case "IMAGE_PULLING":
|
|
197
|
+
return PendingTaskInfo_PendingTaskStatus.IMAGE_PULLING;
|
|
198
|
+
case 4:
|
|
199
|
+
case "INSTALLING":
|
|
200
|
+
return PendingTaskInfo_PendingTaskStatus.INSTALLING;
|
|
201
|
+
case 5:
|
|
202
|
+
case "PAUSED":
|
|
203
|
+
return PendingTaskInfo_PendingTaskStatus.PAUSED;
|
|
204
|
+
case 6:
|
|
205
|
+
case "DOWNLOAD_ERR":
|
|
206
|
+
return PendingTaskInfo_PendingTaskStatus.DOWNLOAD_ERR;
|
|
207
|
+
case 7:
|
|
208
|
+
case "INSTALL_ERR":
|
|
209
|
+
return PendingTaskInfo_PendingTaskStatus.INSTALL_ERR;
|
|
210
|
+
case 8:
|
|
211
|
+
case "INSTALL_OK":
|
|
212
|
+
return PendingTaskInfo_PendingTaskStatus.INSTALL_OK;
|
|
213
|
+
case -1:
|
|
214
|
+
case "UNRECOGNIZED":
|
|
215
|
+
default:
|
|
216
|
+
return PendingTaskInfo_PendingTaskStatus.UNRECOGNIZED;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
exports.pendingTaskInfo_PendingTaskStatusFromJSON = pendingTaskInfo_PendingTaskStatusFromJSON;
|
|
220
|
+
function pendingTaskInfo_PendingTaskStatusToJSON(object) {
|
|
221
|
+
switch (object) {
|
|
222
|
+
case PendingTaskInfo_PendingTaskStatus.Unknown:
|
|
223
|
+
return "Unknown";
|
|
224
|
+
case PendingTaskInfo_PendingTaskStatus.CREATING:
|
|
225
|
+
return "CREATING";
|
|
226
|
+
case PendingTaskInfo_PendingTaskStatus.DOWNLOADING:
|
|
227
|
+
return "DOWNLOADING";
|
|
228
|
+
case PendingTaskInfo_PendingTaskStatus.IMAGE_PULLING:
|
|
229
|
+
return "IMAGE_PULLING";
|
|
230
|
+
case PendingTaskInfo_PendingTaskStatus.INSTALLING:
|
|
231
|
+
return "INSTALLING";
|
|
232
|
+
case PendingTaskInfo_PendingTaskStatus.PAUSED:
|
|
233
|
+
return "PAUSED";
|
|
234
|
+
case PendingTaskInfo_PendingTaskStatus.DOWNLOAD_ERR:
|
|
235
|
+
return "DOWNLOAD_ERR";
|
|
236
|
+
case PendingTaskInfo_PendingTaskStatus.INSTALL_ERR:
|
|
237
|
+
return "INSTALL_ERR";
|
|
238
|
+
case PendingTaskInfo_PendingTaskStatus.INSTALL_OK:
|
|
239
|
+
return "INSTALL_OK";
|
|
240
|
+
case PendingTaskInfo_PendingTaskStatus.UNRECOGNIZED:
|
|
241
|
+
default:
|
|
242
|
+
return "UNRECOGNIZED";
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
exports.pendingTaskInfo_PendingTaskStatusToJSON = pendingTaskInfo_PendingTaskStatusToJSON;
|
|
169
246
|
function createBaseStopMySelfRequest() {
|
|
170
247
|
return { needRestart: false };
|
|
171
248
|
}
|
|
@@ -254,38 +331,65 @@ exports.RestartMySelfResponse = {
|
|
|
254
331
|
return message;
|
|
255
332
|
},
|
|
256
333
|
};
|
|
257
|
-
function
|
|
258
|
-
return { url: "", sha256: "" };
|
|
334
|
+
function createBaseInstallRequest() {
|
|
335
|
+
return { url: "", sha256: "", appid: undefined, subdomain: undefined, title: undefined };
|
|
259
336
|
}
|
|
260
|
-
exports.
|
|
337
|
+
exports.InstallRequest = {
|
|
261
338
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
262
339
|
if (message.url !== "") {
|
|
263
|
-
writer.uint32(
|
|
340
|
+
writer.uint32(18).string(message.url);
|
|
264
341
|
}
|
|
265
342
|
if (message.sha256 !== "") {
|
|
266
|
-
writer.uint32(
|
|
343
|
+
writer.uint32(26).string(message.sha256);
|
|
344
|
+
}
|
|
345
|
+
if (message.appid !== undefined) {
|
|
346
|
+
writer.uint32(10).string(message.appid);
|
|
347
|
+
}
|
|
348
|
+
if (message.subdomain !== undefined) {
|
|
349
|
+
writer.uint32(34).string(message.subdomain);
|
|
350
|
+
}
|
|
351
|
+
if (message.title !== undefined) {
|
|
352
|
+
writer.uint32(42).string(message.title);
|
|
267
353
|
}
|
|
268
354
|
return writer;
|
|
269
355
|
},
|
|
270
356
|
decode(input, length) {
|
|
271
357
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
272
358
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
273
|
-
const message =
|
|
359
|
+
const message = createBaseInstallRequest();
|
|
274
360
|
while (reader.pos < end) {
|
|
275
361
|
const tag = reader.uint32();
|
|
276
362
|
switch (tag >>> 3) {
|
|
277
|
-
case
|
|
278
|
-
if (tag !==
|
|
363
|
+
case 2:
|
|
364
|
+
if (tag !== 18) {
|
|
279
365
|
break;
|
|
280
366
|
}
|
|
281
367
|
message.url = reader.string();
|
|
282
368
|
continue;
|
|
283
|
-
case
|
|
284
|
-
if (tag !==
|
|
369
|
+
case 3:
|
|
370
|
+
if (tag !== 26) {
|
|
285
371
|
break;
|
|
286
372
|
}
|
|
287
373
|
message.sha256 = reader.string();
|
|
288
374
|
continue;
|
|
375
|
+
case 1:
|
|
376
|
+
if (tag !== 10) {
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
message.appid = reader.string();
|
|
380
|
+
continue;
|
|
381
|
+
case 4:
|
|
382
|
+
if (tag !== 34) {
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
message.subdomain = reader.string();
|
|
386
|
+
continue;
|
|
387
|
+
case 5:
|
|
388
|
+
if (tag !== 42) {
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
message.title = reader.string();
|
|
392
|
+
continue;
|
|
289
393
|
}
|
|
290
394
|
if ((tag & 7) === 4 || tag === 0) {
|
|
291
395
|
break;
|
|
@@ -298,6 +402,9 @@ exports.PkgURL = {
|
|
|
298
402
|
return {
|
|
299
403
|
url: isSet(object.url) ? String(object.url) : "",
|
|
300
404
|
sha256: isSet(object.sha256) ? String(object.sha256) : "",
|
|
405
|
+
appid: isSet(object.appid) ? String(object.appid) : undefined,
|
|
406
|
+
subdomain: isSet(object.subdomain) ? String(object.subdomain) : undefined,
|
|
407
|
+
title: isSet(object.title) ? String(object.title) : undefined,
|
|
301
408
|
};
|
|
302
409
|
},
|
|
303
410
|
toJSON(message) {
|
|
@@ -308,53 +415,71 @@ exports.PkgURL = {
|
|
|
308
415
|
if (message.sha256 !== "") {
|
|
309
416
|
obj.sha256 = message.sha256;
|
|
310
417
|
}
|
|
418
|
+
if (message.appid !== undefined) {
|
|
419
|
+
obj.appid = message.appid;
|
|
420
|
+
}
|
|
421
|
+
if (message.subdomain !== undefined) {
|
|
422
|
+
obj.subdomain = message.subdomain;
|
|
423
|
+
}
|
|
424
|
+
if (message.title !== undefined) {
|
|
425
|
+
obj.title = message.title;
|
|
426
|
+
}
|
|
311
427
|
return obj;
|
|
312
428
|
},
|
|
313
429
|
create(base) {
|
|
314
|
-
return exports.
|
|
430
|
+
return exports.InstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
315
431
|
},
|
|
316
432
|
fromPartial(object) {
|
|
317
|
-
var _a, _b;
|
|
318
|
-
const message =
|
|
433
|
+
var _a, _b, _c, _d, _e;
|
|
434
|
+
const message = createBaseInstallRequest();
|
|
319
435
|
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
|
|
320
436
|
message.sha256 = (_b = object.sha256) !== null && _b !== void 0 ? _b : "";
|
|
437
|
+
message.appid = (_c = object.appid) !== null && _c !== void 0 ? _c : undefined;
|
|
438
|
+
message.subdomain = (_d = object.subdomain) !== null && _d !== void 0 ? _d : undefined;
|
|
439
|
+
message.title = (_e = object.title) !== null && _e !== void 0 ? _e : undefined;
|
|
321
440
|
return message;
|
|
322
441
|
},
|
|
323
442
|
};
|
|
324
|
-
function
|
|
325
|
-
return {
|
|
443
|
+
function createBaseInstallLPKRequest() {
|
|
444
|
+
return { lpkUrl: "", waitUnitDone: undefined, sha256: undefined, pkgId: undefined, tmpTitle: undefined };
|
|
326
445
|
}
|
|
327
|
-
exports.
|
|
446
|
+
exports.InstallLPKRequest = {
|
|
328
447
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
329
|
-
if (message.
|
|
330
|
-
writer.uint32(
|
|
448
|
+
if (message.lpkUrl !== "") {
|
|
449
|
+
writer.uint32(10).string(message.lpkUrl);
|
|
331
450
|
}
|
|
332
|
-
if (message.
|
|
333
|
-
writer.uint32(
|
|
451
|
+
if (message.waitUnitDone !== undefined) {
|
|
452
|
+
writer.uint32(16).bool(message.waitUnitDone);
|
|
334
453
|
}
|
|
335
|
-
if (message.
|
|
336
|
-
writer.uint32(
|
|
454
|
+
if (message.sha256 !== undefined) {
|
|
455
|
+
writer.uint32(26).string(message.sha256);
|
|
337
456
|
}
|
|
338
|
-
if (message.
|
|
339
|
-
writer.uint32(34).string(message.
|
|
457
|
+
if (message.pkgId !== undefined) {
|
|
458
|
+
writer.uint32(34).string(message.pkgId);
|
|
340
459
|
}
|
|
341
|
-
if (message.
|
|
342
|
-
writer.uint32(42).string(message.
|
|
460
|
+
if (message.tmpTitle !== undefined) {
|
|
461
|
+
writer.uint32(42).string(message.tmpTitle);
|
|
343
462
|
}
|
|
344
463
|
return writer;
|
|
345
464
|
},
|
|
346
465
|
decode(input, length) {
|
|
347
466
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
348
467
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
349
|
-
const message =
|
|
468
|
+
const message = createBaseInstallLPKRequest();
|
|
350
469
|
while (reader.pos < end) {
|
|
351
470
|
const tag = reader.uint32();
|
|
352
471
|
switch (tag >>> 3) {
|
|
472
|
+
case 1:
|
|
473
|
+
if (tag !== 10) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
message.lpkUrl = reader.string();
|
|
477
|
+
continue;
|
|
353
478
|
case 2:
|
|
354
|
-
if (tag !==
|
|
479
|
+
if (tag !== 16) {
|
|
355
480
|
break;
|
|
356
481
|
}
|
|
357
|
-
message.
|
|
482
|
+
message.waitUnitDone = reader.bool();
|
|
358
483
|
continue;
|
|
359
484
|
case 3:
|
|
360
485
|
if (tag !== 26) {
|
|
@@ -362,23 +487,17 @@ exports.InstallRequest = {
|
|
|
362
487
|
}
|
|
363
488
|
message.sha256 = reader.string();
|
|
364
489
|
continue;
|
|
365
|
-
case 1:
|
|
366
|
-
if (tag !== 10) {
|
|
367
|
-
break;
|
|
368
|
-
}
|
|
369
|
-
message.appid = reader.string();
|
|
370
|
-
continue;
|
|
371
490
|
case 4:
|
|
372
491
|
if (tag !== 34) {
|
|
373
492
|
break;
|
|
374
493
|
}
|
|
375
|
-
message.
|
|
494
|
+
message.pkgId = reader.string();
|
|
376
495
|
continue;
|
|
377
496
|
case 5:
|
|
378
497
|
if (tag !== 42) {
|
|
379
498
|
break;
|
|
380
499
|
}
|
|
381
|
-
message.
|
|
500
|
+
message.tmpTitle = reader.string();
|
|
382
501
|
continue;
|
|
383
502
|
}
|
|
384
503
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -390,43 +509,95 @@ exports.InstallRequest = {
|
|
|
390
509
|
},
|
|
391
510
|
fromJSON(object) {
|
|
392
511
|
return {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
512
|
+
lpkUrl: isSet(object.lpkUrl) ? String(object.lpkUrl) : "",
|
|
513
|
+
waitUnitDone: isSet(object.waitUnitDone) ? Boolean(object.waitUnitDone) : undefined,
|
|
514
|
+
sha256: isSet(object.sha256) ? String(object.sha256) : undefined,
|
|
515
|
+
pkgId: isSet(object.pkgId) ? String(object.pkgId) : undefined,
|
|
516
|
+
tmpTitle: isSet(object.tmpTitle) ? String(object.tmpTitle) : undefined,
|
|
398
517
|
};
|
|
399
518
|
},
|
|
400
519
|
toJSON(message) {
|
|
401
520
|
const obj = {};
|
|
402
|
-
if (message.
|
|
403
|
-
obj.
|
|
521
|
+
if (message.lpkUrl !== "") {
|
|
522
|
+
obj.lpkUrl = message.lpkUrl;
|
|
404
523
|
}
|
|
405
|
-
if (message.
|
|
406
|
-
obj.
|
|
524
|
+
if (message.waitUnitDone !== undefined) {
|
|
525
|
+
obj.waitUnitDone = message.waitUnitDone;
|
|
407
526
|
}
|
|
408
|
-
if (message.
|
|
409
|
-
obj.
|
|
527
|
+
if (message.sha256 !== undefined) {
|
|
528
|
+
obj.sha256 = message.sha256;
|
|
410
529
|
}
|
|
411
|
-
if (message.
|
|
412
|
-
obj.
|
|
530
|
+
if (message.pkgId !== undefined) {
|
|
531
|
+
obj.pkgId = message.pkgId;
|
|
413
532
|
}
|
|
414
|
-
if (message.
|
|
415
|
-
obj.
|
|
533
|
+
if (message.tmpTitle !== undefined) {
|
|
534
|
+
obj.tmpTitle = message.tmpTitle;
|
|
416
535
|
}
|
|
417
536
|
return obj;
|
|
418
537
|
},
|
|
419
538
|
create(base) {
|
|
420
|
-
return exports.
|
|
539
|
+
return exports.InstallLPKRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
421
540
|
},
|
|
422
541
|
fromPartial(object) {
|
|
423
542
|
var _a, _b, _c, _d, _e;
|
|
424
|
-
const message =
|
|
425
|
-
message.
|
|
426
|
-
message.
|
|
427
|
-
message.
|
|
428
|
-
message.
|
|
429
|
-
message.
|
|
543
|
+
const message = createBaseInstallLPKRequest();
|
|
544
|
+
message.lpkUrl = (_a = object.lpkUrl) !== null && _a !== void 0 ? _a : "";
|
|
545
|
+
message.waitUnitDone = (_b = object.waitUnitDone) !== null && _b !== void 0 ? _b : undefined;
|
|
546
|
+
message.sha256 = (_c = object.sha256) !== null && _c !== void 0 ? _c : undefined;
|
|
547
|
+
message.pkgId = (_d = object.pkgId) !== null && _d !== void 0 ? _d : undefined;
|
|
548
|
+
message.tmpTitle = (_e = object.tmpTitle) !== null && _e !== void 0 ? _e : undefined;
|
|
549
|
+
return message;
|
|
550
|
+
},
|
|
551
|
+
};
|
|
552
|
+
function createBaseInstallLPKResponse() {
|
|
553
|
+
return { taskInfo: undefined };
|
|
554
|
+
}
|
|
555
|
+
exports.InstallLPKResponse = {
|
|
556
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
557
|
+
if (message.taskInfo !== undefined) {
|
|
558
|
+
exports.PendingTaskInfo.encode(message.taskInfo, writer.uint32(10).fork()).ldelim();
|
|
559
|
+
}
|
|
560
|
+
return writer;
|
|
561
|
+
},
|
|
562
|
+
decode(input, length) {
|
|
563
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
564
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
565
|
+
const message = createBaseInstallLPKResponse();
|
|
566
|
+
while (reader.pos < end) {
|
|
567
|
+
const tag = reader.uint32();
|
|
568
|
+
switch (tag >>> 3) {
|
|
569
|
+
case 1:
|
|
570
|
+
if (tag !== 10) {
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
message.taskInfo = exports.PendingTaskInfo.decode(reader, reader.uint32());
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
577
|
+
break;
|
|
578
|
+
}
|
|
579
|
+
reader.skipType(tag & 7);
|
|
580
|
+
}
|
|
581
|
+
return message;
|
|
582
|
+
},
|
|
583
|
+
fromJSON(object) {
|
|
584
|
+
return { taskInfo: isSet(object.taskInfo) ? exports.PendingTaskInfo.fromJSON(object.taskInfo) : undefined };
|
|
585
|
+
},
|
|
586
|
+
toJSON(message) {
|
|
587
|
+
const obj = {};
|
|
588
|
+
if (message.taskInfo !== undefined) {
|
|
589
|
+
obj.taskInfo = exports.PendingTaskInfo.toJSON(message.taskInfo);
|
|
590
|
+
}
|
|
591
|
+
return obj;
|
|
592
|
+
},
|
|
593
|
+
create(base) {
|
|
594
|
+
return exports.InstallLPKResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
595
|
+
},
|
|
596
|
+
fromPartial(object) {
|
|
597
|
+
const message = createBaseInstallLPKResponse();
|
|
598
|
+
message.taskInfo = (object.taskInfo !== undefined && object.taskInfo !== null)
|
|
599
|
+
? exports.PendingTaskInfo.fromPartial(object.taskInfo)
|
|
600
|
+
: undefined;
|
|
430
601
|
return message;
|
|
431
602
|
},
|
|
432
603
|
};
|
|
@@ -1056,7 +1227,7 @@ exports.SetAppCfgRequest = {
|
|
|
1056
1227
|
},
|
|
1057
1228
|
};
|
|
1058
1229
|
function createBaseQueryApplicationRequest() {
|
|
1059
|
-
return { todoRemoveAppidList: [], otherUid: undefined, onlyOwner: undefined };
|
|
1230
|
+
return { todoRemoveAppidList: [], otherUid: undefined, onlyOwner: undefined, ignorePendingPkg: undefined };
|
|
1060
1231
|
}
|
|
1061
1232
|
exports.QueryApplicationRequest = {
|
|
1062
1233
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1069,6 +1240,9 @@ exports.QueryApplicationRequest = {
|
|
|
1069
1240
|
if (message.onlyOwner !== undefined) {
|
|
1070
1241
|
writer.uint32(24).bool(message.onlyOwner);
|
|
1071
1242
|
}
|
|
1243
|
+
if (message.ignorePendingPkg !== undefined) {
|
|
1244
|
+
writer.uint32(32).bool(message.ignorePendingPkg);
|
|
1245
|
+
}
|
|
1072
1246
|
return writer;
|
|
1073
1247
|
},
|
|
1074
1248
|
decode(input, length) {
|
|
@@ -1096,6 +1270,12 @@ exports.QueryApplicationRequest = {
|
|
|
1096
1270
|
}
|
|
1097
1271
|
message.onlyOwner = reader.bool();
|
|
1098
1272
|
continue;
|
|
1273
|
+
case 4:
|
|
1274
|
+
if (tag !== 32) {
|
|
1275
|
+
break;
|
|
1276
|
+
}
|
|
1277
|
+
message.ignorePendingPkg = reader.bool();
|
|
1278
|
+
continue;
|
|
1099
1279
|
}
|
|
1100
1280
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1101
1281
|
break;
|
|
@@ -1111,6 +1291,7 @@ exports.QueryApplicationRequest = {
|
|
|
1111
1291
|
: [],
|
|
1112
1292
|
otherUid: isSet(object.otherUid) ? String(object.otherUid) : undefined,
|
|
1113
1293
|
onlyOwner: isSet(object.onlyOwner) ? Boolean(object.onlyOwner) : undefined,
|
|
1294
|
+
ignorePendingPkg: isSet(object.ignorePendingPkg) ? Boolean(object.ignorePendingPkg) : undefined,
|
|
1114
1295
|
};
|
|
1115
1296
|
},
|
|
1116
1297
|
toJSON(message) {
|
|
@@ -1125,17 +1306,21 @@ exports.QueryApplicationRequest = {
|
|
|
1125
1306
|
if (message.onlyOwner !== undefined) {
|
|
1126
1307
|
obj.onlyOwner = message.onlyOwner;
|
|
1127
1308
|
}
|
|
1309
|
+
if (message.ignorePendingPkg !== undefined) {
|
|
1310
|
+
obj.ignorePendingPkg = message.ignorePendingPkg;
|
|
1311
|
+
}
|
|
1128
1312
|
return obj;
|
|
1129
1313
|
},
|
|
1130
1314
|
create(base) {
|
|
1131
1315
|
return exports.QueryApplicationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1132
1316
|
},
|
|
1133
1317
|
fromPartial(object) {
|
|
1134
|
-
var _a, _b, _c;
|
|
1318
|
+
var _a, _b, _c, _d;
|
|
1135
1319
|
const message = createBaseQueryApplicationRequest();
|
|
1136
1320
|
message.todoRemoveAppidList = ((_a = object.todoRemoveAppidList) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
1137
1321
|
message.otherUid = (_b = object.otherUid) !== null && _b !== void 0 ? _b : undefined;
|
|
1138
1322
|
message.onlyOwner = (_c = object.onlyOwner) !== null && _c !== void 0 ? _c : undefined;
|
|
1323
|
+
message.ignorePendingPkg = (_d = object.ignorePendingPkg) !== null && _d !== void 0 ? _d : undefined;
|
|
1139
1324
|
return message;
|
|
1140
1325
|
},
|
|
1141
1326
|
};
|
|
@@ -2085,20 +2270,62 @@ exports.SubscribeAppChangeResponse = {
|
|
|
2085
2270
|
return message;
|
|
2086
2271
|
},
|
|
2087
2272
|
};
|
|
2088
|
-
function
|
|
2089
|
-
return {
|
|
2273
|
+
function createBasePendingTaskInfo() {
|
|
2274
|
+
return {
|
|
2275
|
+
taskId: "",
|
|
2276
|
+
status: 0,
|
|
2277
|
+
createAt: undefined,
|
|
2278
|
+
downloadUrl: "",
|
|
2279
|
+
totalSize: undefined,
|
|
2280
|
+
downloadedSize: 0,
|
|
2281
|
+
taskSha256: undefined,
|
|
2282
|
+
taskTitle: undefined,
|
|
2283
|
+
taskPkgId: undefined,
|
|
2284
|
+
realPkgId: undefined,
|
|
2285
|
+
detail: undefined,
|
|
2286
|
+
};
|
|
2090
2287
|
}
|
|
2091
|
-
exports.
|
|
2288
|
+
exports.PendingTaskInfo = {
|
|
2092
2289
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2093
|
-
|
|
2094
|
-
writer.uint32(10).string(
|
|
2290
|
+
if (message.taskId !== "") {
|
|
2291
|
+
writer.uint32(10).string(message.taskId);
|
|
2292
|
+
}
|
|
2293
|
+
if (message.status !== 0) {
|
|
2294
|
+
writer.uint32(16).int32(message.status);
|
|
2295
|
+
}
|
|
2296
|
+
if (message.createAt !== undefined) {
|
|
2297
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.createAt), writer.uint32(26).fork()).ldelim();
|
|
2298
|
+
}
|
|
2299
|
+
if (message.downloadUrl !== "") {
|
|
2300
|
+
writer.uint32(34).string(message.downloadUrl);
|
|
2301
|
+
}
|
|
2302
|
+
if (message.totalSize !== undefined) {
|
|
2303
|
+
writer.uint32(40).uint64(message.totalSize);
|
|
2304
|
+
}
|
|
2305
|
+
if (message.downloadedSize !== 0) {
|
|
2306
|
+
writer.uint32(48).uint64(message.downloadedSize);
|
|
2307
|
+
}
|
|
2308
|
+
if (message.taskSha256 !== undefined) {
|
|
2309
|
+
writer.uint32(58).string(message.taskSha256);
|
|
2310
|
+
}
|
|
2311
|
+
if (message.taskTitle !== undefined) {
|
|
2312
|
+
writer.uint32(66).string(message.taskTitle);
|
|
2313
|
+
}
|
|
2314
|
+
if (message.taskPkgId !== undefined) {
|
|
2315
|
+
writer.uint32(74).string(message.taskPkgId);
|
|
2316
|
+
}
|
|
2317
|
+
if (message.realPkgId !== undefined) {
|
|
2318
|
+
writer.uint32(82).string(message.realPkgId);
|
|
2319
|
+
}
|
|
2320
|
+
if (message.detail !== undefined) {
|
|
2321
|
+
writer.uint32(90).string(message.detail);
|
|
2095
2322
|
}
|
|
2096
2323
|
return writer;
|
|
2097
2324
|
},
|
|
2098
2325
|
decode(input, length) {
|
|
2099
2326
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2100
2327
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2101
|
-
const message =
|
|
2328
|
+
const message = createBasePendingTaskInfo();
|
|
2102
2329
|
while (reader.pos < end) {
|
|
2103
2330
|
const tag = reader.uint32();
|
|
2104
2331
|
switch (tag >>> 3) {
|
|
@@ -2106,7 +2333,67 @@ exports.GetAppDownloadProgressRequest = {
|
|
|
2106
2333
|
if (tag !== 10) {
|
|
2107
2334
|
break;
|
|
2108
2335
|
}
|
|
2109
|
-
message.
|
|
2336
|
+
message.taskId = reader.string();
|
|
2337
|
+
continue;
|
|
2338
|
+
case 2:
|
|
2339
|
+
if (tag !== 16) {
|
|
2340
|
+
break;
|
|
2341
|
+
}
|
|
2342
|
+
message.status = reader.int32();
|
|
2343
|
+
continue;
|
|
2344
|
+
case 3:
|
|
2345
|
+
if (tag !== 26) {
|
|
2346
|
+
break;
|
|
2347
|
+
}
|
|
2348
|
+
message.createAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2349
|
+
continue;
|
|
2350
|
+
case 4:
|
|
2351
|
+
if (tag !== 34) {
|
|
2352
|
+
break;
|
|
2353
|
+
}
|
|
2354
|
+
message.downloadUrl = reader.string();
|
|
2355
|
+
continue;
|
|
2356
|
+
case 5:
|
|
2357
|
+
if (tag !== 40) {
|
|
2358
|
+
break;
|
|
2359
|
+
}
|
|
2360
|
+
message.totalSize = longToNumber(reader.uint64());
|
|
2361
|
+
continue;
|
|
2362
|
+
case 6:
|
|
2363
|
+
if (tag !== 48) {
|
|
2364
|
+
break;
|
|
2365
|
+
}
|
|
2366
|
+
message.downloadedSize = longToNumber(reader.uint64());
|
|
2367
|
+
continue;
|
|
2368
|
+
case 7:
|
|
2369
|
+
if (tag !== 58) {
|
|
2370
|
+
break;
|
|
2371
|
+
}
|
|
2372
|
+
message.taskSha256 = reader.string();
|
|
2373
|
+
continue;
|
|
2374
|
+
case 8:
|
|
2375
|
+
if (tag !== 66) {
|
|
2376
|
+
break;
|
|
2377
|
+
}
|
|
2378
|
+
message.taskTitle = reader.string();
|
|
2379
|
+
continue;
|
|
2380
|
+
case 9:
|
|
2381
|
+
if (tag !== 74) {
|
|
2382
|
+
break;
|
|
2383
|
+
}
|
|
2384
|
+
message.taskPkgId = reader.string();
|
|
2385
|
+
continue;
|
|
2386
|
+
case 10:
|
|
2387
|
+
if (tag !== 82) {
|
|
2388
|
+
break;
|
|
2389
|
+
}
|
|
2390
|
+
message.realPkgId = reader.string();
|
|
2391
|
+
continue;
|
|
2392
|
+
case 11:
|
|
2393
|
+
if (tag !== 90) {
|
|
2394
|
+
break;
|
|
2395
|
+
}
|
|
2396
|
+
message.detail = reader.string();
|
|
2110
2397
|
continue;
|
|
2111
2398
|
}
|
|
2112
2399
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -2117,41 +2404,128 @@ exports.GetAppDownloadProgressRequest = {
|
|
|
2117
2404
|
return message;
|
|
2118
2405
|
},
|
|
2119
2406
|
fromJSON(object) {
|
|
2120
|
-
return {
|
|
2407
|
+
return {
|
|
2408
|
+
taskId: isSet(object.taskId) ? String(object.taskId) : "",
|
|
2409
|
+
status: isSet(object.status) ? pendingTaskInfo_PendingTaskStatusFromJSON(object.status) : 0,
|
|
2410
|
+
createAt: isSet(object.createAt) ? fromJsonTimestamp(object.createAt) : undefined,
|
|
2411
|
+
downloadUrl: isSet(object.downloadUrl) ? String(object.downloadUrl) : "",
|
|
2412
|
+
totalSize: isSet(object.totalSize) ? Number(object.totalSize) : undefined,
|
|
2413
|
+
downloadedSize: isSet(object.downloadedSize) ? Number(object.downloadedSize) : 0,
|
|
2414
|
+
taskSha256: isSet(object.taskSha256) ? String(object.taskSha256) : undefined,
|
|
2415
|
+
taskTitle: isSet(object.taskTitle) ? String(object.taskTitle) : undefined,
|
|
2416
|
+
taskPkgId: isSet(object.taskPkgId) ? String(object.taskPkgId) : undefined,
|
|
2417
|
+
realPkgId: isSet(object.realPkgId) ? String(object.realPkgId) : undefined,
|
|
2418
|
+
detail: isSet(object.detail) ? String(object.detail) : undefined,
|
|
2419
|
+
};
|
|
2121
2420
|
},
|
|
2122
2421
|
toJSON(message) {
|
|
2123
|
-
var _a;
|
|
2124
2422
|
const obj = {};
|
|
2125
|
-
if (
|
|
2126
|
-
obj.
|
|
2423
|
+
if (message.taskId !== "") {
|
|
2424
|
+
obj.taskId = message.taskId;
|
|
2425
|
+
}
|
|
2426
|
+
if (message.status !== 0) {
|
|
2427
|
+
obj.status = pendingTaskInfo_PendingTaskStatusToJSON(message.status);
|
|
2428
|
+
}
|
|
2429
|
+
if (message.createAt !== undefined) {
|
|
2430
|
+
obj.createAt = message.createAt.toISOString();
|
|
2431
|
+
}
|
|
2432
|
+
if (message.downloadUrl !== "") {
|
|
2433
|
+
obj.downloadUrl = message.downloadUrl;
|
|
2434
|
+
}
|
|
2435
|
+
if (message.totalSize !== undefined) {
|
|
2436
|
+
obj.totalSize = Math.round(message.totalSize);
|
|
2437
|
+
}
|
|
2438
|
+
if (message.downloadedSize !== 0) {
|
|
2439
|
+
obj.downloadedSize = Math.round(message.downloadedSize);
|
|
2440
|
+
}
|
|
2441
|
+
if (message.taskSha256 !== undefined) {
|
|
2442
|
+
obj.taskSha256 = message.taskSha256;
|
|
2443
|
+
}
|
|
2444
|
+
if (message.taskTitle !== undefined) {
|
|
2445
|
+
obj.taskTitle = message.taskTitle;
|
|
2446
|
+
}
|
|
2447
|
+
if (message.taskPkgId !== undefined) {
|
|
2448
|
+
obj.taskPkgId = message.taskPkgId;
|
|
2449
|
+
}
|
|
2450
|
+
if (message.realPkgId !== undefined) {
|
|
2451
|
+
obj.realPkgId = message.realPkgId;
|
|
2452
|
+
}
|
|
2453
|
+
if (message.detail !== undefined) {
|
|
2454
|
+
obj.detail = message.detail;
|
|
2127
2455
|
}
|
|
2128
2456
|
return obj;
|
|
2129
2457
|
},
|
|
2130
2458
|
create(base) {
|
|
2131
|
-
return exports.
|
|
2459
|
+
return exports.PendingTaskInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2132
2460
|
},
|
|
2133
2461
|
fromPartial(object) {
|
|
2134
|
-
var _a;
|
|
2135
|
-
const message =
|
|
2136
|
-
message.
|
|
2462
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2463
|
+
const message = createBasePendingTaskInfo();
|
|
2464
|
+
message.taskId = (_a = object.taskId) !== null && _a !== void 0 ? _a : "";
|
|
2465
|
+
message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
|
|
2466
|
+
message.createAt = (_c = object.createAt) !== null && _c !== void 0 ? _c : undefined;
|
|
2467
|
+
message.downloadUrl = (_d = object.downloadUrl) !== null && _d !== void 0 ? _d : "";
|
|
2468
|
+
message.totalSize = (_e = object.totalSize) !== null && _e !== void 0 ? _e : undefined;
|
|
2469
|
+
message.downloadedSize = (_f = object.downloadedSize) !== null && _f !== void 0 ? _f : 0;
|
|
2470
|
+
message.taskSha256 = (_g = object.taskSha256) !== null && _g !== void 0 ? _g : undefined;
|
|
2471
|
+
message.taskTitle = (_h = object.taskTitle) !== null && _h !== void 0 ? _h : undefined;
|
|
2472
|
+
message.taskPkgId = (_j = object.taskPkgId) !== null && _j !== void 0 ? _j : undefined;
|
|
2473
|
+
message.realPkgId = (_k = object.realPkgId) !== null && _k !== void 0 ? _k : undefined;
|
|
2474
|
+
message.detail = (_l = object.detail) !== null && _l !== void 0 ? _l : undefined;
|
|
2137
2475
|
return message;
|
|
2138
2476
|
},
|
|
2139
2477
|
};
|
|
2140
|
-
function
|
|
2141
|
-
return {
|
|
2478
|
+
function createBaseQueryPendingTaskRequest() {
|
|
2479
|
+
return {};
|
|
2142
2480
|
}
|
|
2143
|
-
exports.
|
|
2481
|
+
exports.QueryPendingTaskRequest = {
|
|
2482
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
2483
|
+
return writer;
|
|
2484
|
+
},
|
|
2485
|
+
decode(input, length) {
|
|
2486
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2487
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2488
|
+
const message = createBaseQueryPendingTaskRequest();
|
|
2489
|
+
while (reader.pos < end) {
|
|
2490
|
+
const tag = reader.uint32();
|
|
2491
|
+
switch (tag >>> 3) {
|
|
2492
|
+
}
|
|
2493
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2494
|
+
break;
|
|
2495
|
+
}
|
|
2496
|
+
reader.skipType(tag & 7);
|
|
2497
|
+
}
|
|
2498
|
+
return message;
|
|
2499
|
+
},
|
|
2500
|
+
fromJSON(_) {
|
|
2501
|
+
return {};
|
|
2502
|
+
},
|
|
2503
|
+
toJSON(_) {
|
|
2504
|
+
const obj = {};
|
|
2505
|
+
return obj;
|
|
2506
|
+
},
|
|
2507
|
+
create(base) {
|
|
2508
|
+
return exports.QueryPendingTaskRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2509
|
+
},
|
|
2510
|
+
fromPartial(_) {
|
|
2511
|
+
const message = createBaseQueryPendingTaskRequest();
|
|
2512
|
+
return message;
|
|
2513
|
+
},
|
|
2514
|
+
};
|
|
2515
|
+
function createBaseQueryPendingTaskResponse() {
|
|
2516
|
+
return { infos: [] };
|
|
2517
|
+
}
|
|
2518
|
+
exports.QueryPendingTaskResponse = {
|
|
2144
2519
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2145
|
-
|
|
2146
|
-
exports.
|
|
2147
|
-
|
|
2148
|
-
});
|
|
2520
|
+
for (const v of message.infos) {
|
|
2521
|
+
exports.PendingTaskInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2522
|
+
}
|
|
2149
2523
|
return writer;
|
|
2150
2524
|
},
|
|
2151
2525
|
decode(input, length) {
|
|
2152
2526
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2153
2527
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2154
|
-
const message =
|
|
2528
|
+
const message = createBaseQueryPendingTaskResponse();
|
|
2155
2529
|
while (reader.pos < end) {
|
|
2156
2530
|
const tag = reader.uint32();
|
|
2157
2531
|
switch (tag >>> 3) {
|
|
@@ -2159,10 +2533,7 @@ exports.GetAppDownloadProgressResponse = {
|
|
|
2159
2533
|
if (tag !== 10) {
|
|
2160
2534
|
break;
|
|
2161
2535
|
}
|
|
2162
|
-
|
|
2163
|
-
if (entry1.value !== undefined) {
|
|
2164
|
-
message.progresses[entry1.key] = entry1.value;
|
|
2165
|
-
}
|
|
2536
|
+
message.infos.push(exports.PendingTaskInfo.decode(reader, reader.uint32()));
|
|
2166
2537
|
continue;
|
|
2167
2538
|
}
|
|
2168
2539
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -2173,60 +2544,43 @@ exports.GetAppDownloadProgressResponse = {
|
|
|
2173
2544
|
return message;
|
|
2174
2545
|
},
|
|
2175
2546
|
fromJSON(object) {
|
|
2176
|
-
return {
|
|
2177
|
-
progresses: isObject(object.progresses)
|
|
2178
|
-
? Object.entries(object.progresses).reduce((acc, [key, value]) => {
|
|
2179
|
-
acc[key] = exports.AppDownloadProgress.fromJSON(value);
|
|
2180
|
-
return acc;
|
|
2181
|
-
}, {})
|
|
2182
|
-
: {},
|
|
2183
|
-
};
|
|
2547
|
+
return { infos: Array.isArray(object === null || object === void 0 ? void 0 : object.infos) ? object.infos.map((e) => exports.PendingTaskInfo.fromJSON(e)) : [] };
|
|
2184
2548
|
},
|
|
2185
2549
|
toJSON(message) {
|
|
2550
|
+
var _a;
|
|
2186
2551
|
const obj = {};
|
|
2187
|
-
if (message.
|
|
2188
|
-
|
|
2189
|
-
if (entries.length > 0) {
|
|
2190
|
-
obj.progresses = {};
|
|
2191
|
-
entries.forEach(([k, v]) => {
|
|
2192
|
-
obj.progresses[k] = exports.AppDownloadProgress.toJSON(v);
|
|
2193
|
-
});
|
|
2194
|
-
}
|
|
2552
|
+
if ((_a = message.infos) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2553
|
+
obj.infos = message.infos.map((e) => exports.PendingTaskInfo.toJSON(e));
|
|
2195
2554
|
}
|
|
2196
2555
|
return obj;
|
|
2197
2556
|
},
|
|
2198
2557
|
create(base) {
|
|
2199
|
-
return exports.
|
|
2558
|
+
return exports.QueryPendingTaskResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2200
2559
|
},
|
|
2201
2560
|
fromPartial(object) {
|
|
2202
2561
|
var _a;
|
|
2203
|
-
const message =
|
|
2204
|
-
message.
|
|
2205
|
-
if (value !== undefined) {
|
|
2206
|
-
acc[key] = exports.AppDownloadProgress.fromPartial(value);
|
|
2207
|
-
}
|
|
2208
|
-
return acc;
|
|
2209
|
-
}, {});
|
|
2562
|
+
const message = createBaseQueryPendingTaskResponse();
|
|
2563
|
+
message.infos = ((_a = object.infos) === null || _a === void 0 ? void 0 : _a.map((e) => exports.PendingTaskInfo.fromPartial(e))) || [];
|
|
2210
2564
|
return message;
|
|
2211
2565
|
},
|
|
2212
2566
|
};
|
|
2213
|
-
function
|
|
2214
|
-
return {
|
|
2567
|
+
function createBaseCancelPendingTaskRequest() {
|
|
2568
|
+
return { taskId: "", onlyPause: false };
|
|
2215
2569
|
}
|
|
2216
|
-
exports.
|
|
2570
|
+
exports.CancelPendingTaskRequest = {
|
|
2217
2571
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2218
|
-
if (message.
|
|
2219
|
-
writer.uint32(10).string(message.
|
|
2572
|
+
if (message.taskId !== "") {
|
|
2573
|
+
writer.uint32(10).string(message.taskId);
|
|
2220
2574
|
}
|
|
2221
|
-
if (message.
|
|
2222
|
-
|
|
2575
|
+
if (message.onlyPause === true) {
|
|
2576
|
+
writer.uint32(16).bool(message.onlyPause);
|
|
2223
2577
|
}
|
|
2224
2578
|
return writer;
|
|
2225
2579
|
},
|
|
2226
2580
|
decode(input, length) {
|
|
2227
2581
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2228
2582
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2229
|
-
const message =
|
|
2583
|
+
const message = createBaseCancelPendingTaskRequest();
|
|
2230
2584
|
while (reader.pos < end) {
|
|
2231
2585
|
const tag = reader.uint32();
|
|
2232
2586
|
switch (tag >>> 3) {
|
|
@@ -2234,13 +2588,13 @@ exports.GetAppDownloadProgressResponse_ProgressesEntry = {
|
|
|
2234
2588
|
if (tag !== 10) {
|
|
2235
2589
|
break;
|
|
2236
2590
|
}
|
|
2237
|
-
message.
|
|
2591
|
+
message.taskId = reader.string();
|
|
2238
2592
|
continue;
|
|
2239
2593
|
case 2:
|
|
2240
|
-
if (tag !==
|
|
2594
|
+
if (tag !== 16) {
|
|
2241
2595
|
break;
|
|
2242
2596
|
}
|
|
2243
|
-
message.
|
|
2597
|
+
message.onlyPause = reader.bool();
|
|
2244
2598
|
continue;
|
|
2245
2599
|
}
|
|
2246
2600
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -2252,37 +2606,72 @@ exports.GetAppDownloadProgressResponse_ProgressesEntry = {
|
|
|
2252
2606
|
},
|
|
2253
2607
|
fromJSON(object) {
|
|
2254
2608
|
return {
|
|
2255
|
-
|
|
2256
|
-
|
|
2609
|
+
taskId: isSet(object.taskId) ? String(object.taskId) : "",
|
|
2610
|
+
onlyPause: isSet(object.onlyPause) ? Boolean(object.onlyPause) : false,
|
|
2257
2611
|
};
|
|
2258
2612
|
},
|
|
2259
2613
|
toJSON(message) {
|
|
2260
2614
|
const obj = {};
|
|
2261
|
-
if (message.
|
|
2262
|
-
obj.
|
|
2615
|
+
if (message.taskId !== "") {
|
|
2616
|
+
obj.taskId = message.taskId;
|
|
2263
2617
|
}
|
|
2264
|
-
if (message.
|
|
2265
|
-
obj.
|
|
2618
|
+
if (message.onlyPause === true) {
|
|
2619
|
+
obj.onlyPause = message.onlyPause;
|
|
2266
2620
|
}
|
|
2267
2621
|
return obj;
|
|
2268
2622
|
},
|
|
2269
2623
|
create(base) {
|
|
2270
|
-
return exports.
|
|
2624
|
+
return exports.CancelPendingTaskRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2271
2625
|
},
|
|
2272
2626
|
fromPartial(object) {
|
|
2273
|
-
var _a;
|
|
2274
|
-
const message =
|
|
2275
|
-
message.
|
|
2276
|
-
message.
|
|
2277
|
-
|
|
2278
|
-
|
|
2627
|
+
var _a, _b;
|
|
2628
|
+
const message = createBaseCancelPendingTaskRequest();
|
|
2629
|
+
message.taskId = (_a = object.taskId) !== null && _a !== void 0 ? _a : "";
|
|
2630
|
+
message.onlyPause = (_b = object.onlyPause) !== null && _b !== void 0 ? _b : false;
|
|
2631
|
+
return message;
|
|
2632
|
+
},
|
|
2633
|
+
};
|
|
2634
|
+
function createBaseCancelPendingTaskResponse() {
|
|
2635
|
+
return {};
|
|
2636
|
+
}
|
|
2637
|
+
exports.CancelPendingTaskResponse = {
|
|
2638
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
2639
|
+
return writer;
|
|
2640
|
+
},
|
|
2641
|
+
decode(input, length) {
|
|
2642
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2643
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2644
|
+
const message = createBaseCancelPendingTaskResponse();
|
|
2645
|
+
while (reader.pos < end) {
|
|
2646
|
+
const tag = reader.uint32();
|
|
2647
|
+
switch (tag >>> 3) {
|
|
2648
|
+
}
|
|
2649
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2650
|
+
break;
|
|
2651
|
+
}
|
|
2652
|
+
reader.skipType(tag & 7);
|
|
2653
|
+
}
|
|
2654
|
+
return message;
|
|
2655
|
+
},
|
|
2656
|
+
fromJSON(_) {
|
|
2657
|
+
return {};
|
|
2658
|
+
},
|
|
2659
|
+
toJSON(_) {
|
|
2660
|
+
const obj = {};
|
|
2661
|
+
return obj;
|
|
2662
|
+
},
|
|
2663
|
+
create(base) {
|
|
2664
|
+
return exports.CancelPendingTaskResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2665
|
+
},
|
|
2666
|
+
fromPartial(_) {
|
|
2667
|
+
const message = createBaseCancelPendingTaskResponse();
|
|
2279
2668
|
return message;
|
|
2280
2669
|
},
|
|
2281
2670
|
};
|
|
2282
2671
|
class PackageManagerClientImpl {
|
|
2283
2672
|
constructor(rpc) {
|
|
2284
2673
|
this.rpc = rpc;
|
|
2285
|
-
this.
|
|
2674
|
+
this.InstallLPK = this.InstallLPK.bind(this);
|
|
2286
2675
|
this.Uninstall = this.Uninstall.bind(this);
|
|
2287
2676
|
this.Pause = this.Pause.bind(this);
|
|
2288
2677
|
this.Resume = this.Resume.bind(this);
|
|
@@ -2290,18 +2679,20 @@ class PackageManagerClientImpl {
|
|
|
2290
2679
|
this.GetAppCfg = this.GetAppCfg.bind(this);
|
|
2291
2680
|
this.SetAppCfg = this.SetAppCfg.bind(this);
|
|
2292
2681
|
this.QueryApplication = this.QueryApplication.bind(this);
|
|
2682
|
+
this.QueryPendingTask = this.QueryPendingTask.bind(this);
|
|
2683
|
+
this.CancelPendingTask = this.CancelPendingTask.bind(this);
|
|
2293
2684
|
this.SubscribeAppChange = this.SubscribeAppChange.bind(this);
|
|
2294
|
-
this.GetAppDownloadProgress = this.GetAppDownloadProgress.bind(this);
|
|
2295
2685
|
this.QueryAppStorageUsage = this.QueryAppStorageUsage.bind(this);
|
|
2296
2686
|
this.SetUserPermissions = this.SetUserPermissions.bind(this);
|
|
2297
2687
|
this.GetUserPermissions = this.GetUserPermissions.bind(this);
|
|
2298
|
-
this.PauseAppDownload = this.PauseAppDownload.bind(this);
|
|
2299
2688
|
this.GetActionURL = this.GetActionURL.bind(this);
|
|
2300
2689
|
this.ListFileHandler = this.ListFileHandler.bind(this);
|
|
2301
2690
|
this.StopMySelf = this.StopMySelf.bind(this);
|
|
2691
|
+
this.PauseAppDownload = this.PauseAppDownload.bind(this);
|
|
2692
|
+
this.Install = this.Install.bind(this);
|
|
2302
2693
|
}
|
|
2303
|
-
|
|
2304
|
-
return this.rpc.unary(exports.
|
|
2694
|
+
InstallLPK(request, metadata, abortSignal) {
|
|
2695
|
+
return this.rpc.unary(exports.PackageManagerInstallLPKDesc, exports.InstallLPKRequest.fromPartial(request), metadata, abortSignal);
|
|
2305
2696
|
}
|
|
2306
2697
|
Uninstall(request, metadata, abortSignal) {
|
|
2307
2698
|
return this.rpc.unary(exports.PackageManagerUninstallDesc, exports.UninstallRequest.fromPartial(request), metadata, abortSignal);
|
|
@@ -2324,12 +2715,15 @@ class PackageManagerClientImpl {
|
|
|
2324
2715
|
QueryApplication(request, metadata, abortSignal) {
|
|
2325
2716
|
return this.rpc.unary(exports.PackageManagerQueryApplicationDesc, exports.QueryApplicationRequest.fromPartial(request), metadata, abortSignal);
|
|
2326
2717
|
}
|
|
2718
|
+
QueryPendingTask(request, metadata, abortSignal) {
|
|
2719
|
+
return this.rpc.unary(exports.PackageManagerQueryPendingTaskDesc, exports.QueryPendingTaskRequest.fromPartial(request), metadata, abortSignal);
|
|
2720
|
+
}
|
|
2721
|
+
CancelPendingTask(request, metadata, abortSignal) {
|
|
2722
|
+
return this.rpc.unary(exports.PackageManagerCancelPendingTaskDesc, exports.CancelPendingTaskRequest.fromPartial(request), metadata, abortSignal);
|
|
2723
|
+
}
|
|
2327
2724
|
SubscribeAppChange(request, metadata, abortSignal) {
|
|
2328
2725
|
return this.rpc.invoke(exports.PackageManagerSubscribeAppChangeDesc, exports.SubscribeAppChangeRequest.fromPartial(request), metadata, abortSignal);
|
|
2329
2726
|
}
|
|
2330
|
-
GetAppDownloadProgress(request, metadata, abortSignal) {
|
|
2331
|
-
return this.rpc.unary(exports.PackageManagerGetAppDownloadProgressDesc, exports.GetAppDownloadProgressRequest.fromPartial(request), metadata, abortSignal);
|
|
2332
|
-
}
|
|
2333
2727
|
QueryAppStorageUsage(request, metadata, abortSignal) {
|
|
2334
2728
|
return this.rpc.unary(exports.PackageManagerQueryAppStorageUsageDesc, exports.QueryAppStorageUsageRequest.fromPartial(request), metadata, abortSignal);
|
|
2335
2729
|
}
|
|
@@ -2339,9 +2733,6 @@ class PackageManagerClientImpl {
|
|
|
2339
2733
|
GetUserPermissions(request, metadata, abortSignal) {
|
|
2340
2734
|
return this.rpc.unary(exports.PackageManagerGetUserPermissionsDesc, exports.GetUserPermissionsRequest.fromPartial(request), metadata, abortSignal);
|
|
2341
2735
|
}
|
|
2342
|
-
PauseAppDownload(request, metadata, abortSignal) {
|
|
2343
|
-
return this.rpc.unary(exports.PackageManagerPauseAppDownloadDesc, exports.Appid.fromPartial(request), metadata, abortSignal);
|
|
2344
|
-
}
|
|
2345
2736
|
GetActionURL(request, metadata, abortSignal) {
|
|
2346
2737
|
return this.rpc.unary(exports.PackageManagerGetActionURLDesc, exports.GetActionURLRequest.fromPartial(request), metadata, abortSignal);
|
|
2347
2738
|
}
|
|
@@ -2351,22 +2742,28 @@ class PackageManagerClientImpl {
|
|
|
2351
2742
|
StopMySelf(request, metadata, abortSignal) {
|
|
2352
2743
|
return this.rpc.unary(exports.PackageManagerStopMySelfDesc, exports.StopMySelfRequest.fromPartial(request), metadata, abortSignal);
|
|
2353
2744
|
}
|
|
2745
|
+
PauseAppDownload(request, metadata, abortSignal) {
|
|
2746
|
+
return this.rpc.unary(exports.PackageManagerPauseAppDownloadDesc, exports.Appid.fromPartial(request), metadata, abortSignal);
|
|
2747
|
+
}
|
|
2748
|
+
Install(request, metadata, abortSignal) {
|
|
2749
|
+
return this.rpc.unary(exports.PackageManagerInstallDesc, exports.InstallRequest.fromPartial(request), metadata, abortSignal);
|
|
2750
|
+
}
|
|
2354
2751
|
}
|
|
2355
2752
|
exports.PackageManagerClientImpl = PackageManagerClientImpl;
|
|
2356
2753
|
exports.PackageManagerDesc = { serviceName: "cloud.lazycat.apis.sys.PackageManager" };
|
|
2357
|
-
exports.
|
|
2358
|
-
methodName: "
|
|
2754
|
+
exports.PackageManagerInstallLPKDesc = {
|
|
2755
|
+
methodName: "InstallLPK",
|
|
2359
2756
|
service: exports.PackageManagerDesc,
|
|
2360
2757
|
requestStream: false,
|
|
2361
2758
|
responseStream: false,
|
|
2362
2759
|
requestType: {
|
|
2363
2760
|
serializeBinary() {
|
|
2364
|
-
return exports.
|
|
2761
|
+
return exports.InstallLPKRequest.encode(this).finish();
|
|
2365
2762
|
},
|
|
2366
2763
|
},
|
|
2367
2764
|
responseType: {
|
|
2368
2765
|
deserializeBinary(data) {
|
|
2369
|
-
const value =
|
|
2766
|
+
const value = exports.InstallLPKResponse.decode(data);
|
|
2370
2767
|
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2371
2768
|
return value;
|
|
2372
2769
|
} });
|
|
@@ -2506,38 +2903,57 @@ exports.PackageManagerQueryApplicationDesc = {
|
|
|
2506
2903
|
},
|
|
2507
2904
|
},
|
|
2508
2905
|
};
|
|
2509
|
-
exports.
|
|
2510
|
-
methodName: "
|
|
2906
|
+
exports.PackageManagerQueryPendingTaskDesc = {
|
|
2907
|
+
methodName: "QueryPendingTask",
|
|
2511
2908
|
service: exports.PackageManagerDesc,
|
|
2512
2909
|
requestStream: false,
|
|
2513
|
-
responseStream:
|
|
2910
|
+
responseStream: false,
|
|
2514
2911
|
requestType: {
|
|
2515
2912
|
serializeBinary() {
|
|
2516
|
-
return exports.
|
|
2913
|
+
return exports.QueryPendingTaskRequest.encode(this).finish();
|
|
2517
2914
|
},
|
|
2518
2915
|
},
|
|
2519
2916
|
responseType: {
|
|
2520
2917
|
deserializeBinary(data) {
|
|
2521
|
-
const value = exports.
|
|
2918
|
+
const value = exports.QueryPendingTaskResponse.decode(data);
|
|
2522
2919
|
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2523
2920
|
return value;
|
|
2524
2921
|
} });
|
|
2525
2922
|
},
|
|
2526
2923
|
},
|
|
2527
2924
|
};
|
|
2528
|
-
exports.
|
|
2529
|
-
methodName: "
|
|
2925
|
+
exports.PackageManagerCancelPendingTaskDesc = {
|
|
2926
|
+
methodName: "CancelPendingTask",
|
|
2530
2927
|
service: exports.PackageManagerDesc,
|
|
2531
2928
|
requestStream: false,
|
|
2532
2929
|
responseStream: false,
|
|
2533
2930
|
requestType: {
|
|
2534
2931
|
serializeBinary() {
|
|
2535
|
-
return exports.
|
|
2932
|
+
return exports.CancelPendingTaskRequest.encode(this).finish();
|
|
2933
|
+
},
|
|
2934
|
+
},
|
|
2935
|
+
responseType: {
|
|
2936
|
+
deserializeBinary(data) {
|
|
2937
|
+
const value = exports.CancelPendingTaskResponse.decode(data);
|
|
2938
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2939
|
+
return value;
|
|
2940
|
+
} });
|
|
2941
|
+
},
|
|
2942
|
+
},
|
|
2943
|
+
};
|
|
2944
|
+
exports.PackageManagerSubscribeAppChangeDesc = {
|
|
2945
|
+
methodName: "SubscribeAppChange",
|
|
2946
|
+
service: exports.PackageManagerDesc,
|
|
2947
|
+
requestStream: false,
|
|
2948
|
+
responseStream: true,
|
|
2949
|
+
requestType: {
|
|
2950
|
+
serializeBinary() {
|
|
2951
|
+
return exports.SubscribeAppChangeRequest.encode(this).finish();
|
|
2536
2952
|
},
|
|
2537
2953
|
},
|
|
2538
2954
|
responseType: {
|
|
2539
2955
|
deserializeBinary(data) {
|
|
2540
|
-
const value = exports.
|
|
2956
|
+
const value = exports.SubscribeAppChangeResponse.decode(data);
|
|
2541
2957
|
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2542
2958
|
return value;
|
|
2543
2959
|
} });
|
|
@@ -2601,76 +3017,95 @@ exports.PackageManagerGetUserPermissionsDesc = {
|
|
|
2601
3017
|
},
|
|
2602
3018
|
},
|
|
2603
3019
|
};
|
|
2604
|
-
exports.
|
|
2605
|
-
methodName: "
|
|
3020
|
+
exports.PackageManagerGetActionURLDesc = {
|
|
3021
|
+
methodName: "GetActionURL",
|
|
2606
3022
|
service: exports.PackageManagerDesc,
|
|
2607
3023
|
requestStream: false,
|
|
2608
3024
|
responseStream: false,
|
|
2609
3025
|
requestType: {
|
|
2610
3026
|
serializeBinary() {
|
|
2611
|
-
return exports.
|
|
3027
|
+
return exports.GetActionURLRequest.encode(this).finish();
|
|
2612
3028
|
},
|
|
2613
3029
|
},
|
|
2614
3030
|
responseType: {
|
|
2615
3031
|
deserializeBinary(data) {
|
|
2616
|
-
const value =
|
|
3032
|
+
const value = exports.GetActionURLResponse.decode(data);
|
|
2617
3033
|
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2618
3034
|
return value;
|
|
2619
3035
|
} });
|
|
2620
3036
|
},
|
|
2621
3037
|
},
|
|
2622
3038
|
};
|
|
2623
|
-
exports.
|
|
2624
|
-
methodName: "
|
|
3039
|
+
exports.PackageManagerListFileHandlerDesc = {
|
|
3040
|
+
methodName: "ListFileHandler",
|
|
2625
3041
|
service: exports.PackageManagerDesc,
|
|
2626
3042
|
requestStream: false,
|
|
2627
3043
|
responseStream: false,
|
|
2628
3044
|
requestType: {
|
|
2629
3045
|
serializeBinary() {
|
|
2630
|
-
return exports.
|
|
3046
|
+
return exports.ListFileHandlerRequest.encode(this).finish();
|
|
2631
3047
|
},
|
|
2632
3048
|
},
|
|
2633
3049
|
responseType: {
|
|
2634
3050
|
deserializeBinary(data) {
|
|
2635
|
-
const value = exports.
|
|
3051
|
+
const value = exports.ListFileHandlerResponse.decode(data);
|
|
2636
3052
|
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2637
3053
|
return value;
|
|
2638
3054
|
} });
|
|
2639
3055
|
},
|
|
2640
3056
|
},
|
|
2641
3057
|
};
|
|
2642
|
-
exports.
|
|
2643
|
-
methodName: "
|
|
3058
|
+
exports.PackageManagerStopMySelfDesc = {
|
|
3059
|
+
methodName: "StopMySelf",
|
|
2644
3060
|
service: exports.PackageManagerDesc,
|
|
2645
3061
|
requestStream: false,
|
|
2646
3062
|
responseStream: false,
|
|
2647
3063
|
requestType: {
|
|
2648
3064
|
serializeBinary() {
|
|
2649
|
-
return exports.
|
|
3065
|
+
return exports.StopMySelfRequest.encode(this).finish();
|
|
2650
3066
|
},
|
|
2651
3067
|
},
|
|
2652
3068
|
responseType: {
|
|
2653
3069
|
deserializeBinary(data) {
|
|
2654
|
-
const value = exports.
|
|
3070
|
+
const value = exports.RestartMySelfResponse.decode(data);
|
|
2655
3071
|
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2656
3072
|
return value;
|
|
2657
3073
|
} });
|
|
2658
3074
|
},
|
|
2659
3075
|
},
|
|
2660
3076
|
};
|
|
2661
|
-
exports.
|
|
2662
|
-
methodName: "
|
|
3077
|
+
exports.PackageManagerPauseAppDownloadDesc = {
|
|
3078
|
+
methodName: "PauseAppDownload",
|
|
2663
3079
|
service: exports.PackageManagerDesc,
|
|
2664
3080
|
requestStream: false,
|
|
2665
3081
|
responseStream: false,
|
|
2666
3082
|
requestType: {
|
|
2667
3083
|
serializeBinary() {
|
|
2668
|
-
return exports.
|
|
3084
|
+
return exports.Appid.encode(this).finish();
|
|
2669
3085
|
},
|
|
2670
3086
|
},
|
|
2671
3087
|
responseType: {
|
|
2672
3088
|
deserializeBinary(data) {
|
|
2673
|
-
const value =
|
|
3089
|
+
const value = empty_1.Empty.decode(data);
|
|
3090
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
3091
|
+
return value;
|
|
3092
|
+
} });
|
|
3093
|
+
},
|
|
3094
|
+
},
|
|
3095
|
+
};
|
|
3096
|
+
exports.PackageManagerInstallDesc = {
|
|
3097
|
+
methodName: "Install",
|
|
3098
|
+
service: exports.PackageManagerDesc,
|
|
3099
|
+
requestStream: false,
|
|
3100
|
+
responseStream: false,
|
|
3101
|
+
requestType: {
|
|
3102
|
+
serializeBinary() {
|
|
3103
|
+
return exports.InstallRequest.encode(this).finish();
|
|
3104
|
+
},
|
|
3105
|
+
},
|
|
3106
|
+
responseType: {
|
|
3107
|
+
deserializeBinary(data) {
|
|
3108
|
+
const value = empty_1.Empty.decode(data);
|
|
2674
3109
|
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2675
3110
|
return value;
|
|
2676
3111
|
} });
|
|
@@ -2765,6 +3200,27 @@ const tsProtoGlobalThis = (() => {
|
|
|
2765
3200
|
}
|
|
2766
3201
|
throw "Unable to locate global object";
|
|
2767
3202
|
})();
|
|
3203
|
+
function toTimestamp(date) {
|
|
3204
|
+
const seconds = date.getTime() / 1000;
|
|
3205
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
3206
|
+
return { seconds, nanos };
|
|
3207
|
+
}
|
|
3208
|
+
function fromTimestamp(t) {
|
|
3209
|
+
let millis = (t.seconds || 0) * 1000;
|
|
3210
|
+
millis += (t.nanos || 0) / 1000000;
|
|
3211
|
+
return new Date(millis);
|
|
3212
|
+
}
|
|
3213
|
+
function fromJsonTimestamp(o) {
|
|
3214
|
+
if (o instanceof Date) {
|
|
3215
|
+
return o;
|
|
3216
|
+
}
|
|
3217
|
+
else if (typeof o === "string") {
|
|
3218
|
+
return new Date(o);
|
|
3219
|
+
}
|
|
3220
|
+
else {
|
|
3221
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
2768
3224
|
function longToNumber(long) {
|
|
2769
3225
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
2770
3226
|
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
@@ -2775,9 +3231,6 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
2775
3231
|
minimal_1.default.util.Long = long_1.default;
|
|
2776
3232
|
minimal_1.default.configure();
|
|
2777
3233
|
}
|
|
2778
|
-
function isObject(value) {
|
|
2779
|
-
return typeof value === "object" && value !== null;
|
|
2780
|
-
}
|
|
2781
3234
|
function isSet(value) {
|
|
2782
3235
|
return value !== null && value !== undefined;
|
|
2783
3236
|
}
|