@lazycatcloud/sdk 0.1.253 → 0.1.254
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/apk_shell.d.ts +2 -3
- package/dist/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +50 -62
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/box.d.ts +2 -3
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +130 -108
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +2 -3
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +68 -81
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +2 -3
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +92 -99
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +2 -3
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +126 -123
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +2 -3
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +337 -263
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +2 -3
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +83 -74
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +2 -3
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +63 -80
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +2 -3
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +123 -118
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +2 -3
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +110 -114
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +2 -3
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +65 -70
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +2 -3
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +129 -112
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +18 -112
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +121 -206
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +724 -607
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +1 -1
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +13 -24
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/grpcweb.d.ts +1 -0
- package/dist/grpcweb.d.ts.map +1 -1
- package/dist/grpcweb.js +6 -0
- package/dist/grpcweb.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -9
- package/dist/index.js.map +1 -1
- package/dist/localdevice/client.d.ts +2 -3
- package/dist/localdevice/client.d.ts.map +1 -1
- package/dist/localdevice/client.js +18 -35
- package/dist/localdevice/client.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +2 -3
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +56 -79
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +2 -3
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +59 -60
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +2 -3
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +26 -39
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +2 -3
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +81 -78
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +2 -3
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +92 -85
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +2 -3
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +15 -32
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +2 -3
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +80 -83
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +2 -3
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +289 -245
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_daemon.d.ts +22 -0
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +91 -8
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +2 -3
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +173 -142
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +2 -3
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +62 -65
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/box-status.d.ts +45 -14
- package/dist/sys/box-status.d.ts.map +1 -1
- package/dist/sys/box-status.js +139 -46
- package/dist/sys/box-status.js.map +1 -1
- package/dist/sys/btled.d.ts +2 -3
- package/dist/sys/btled.d.ts.map +1 -1
- package/dist/sys/btled.js +52 -70
- package/dist/sys/btled.js.map +1 -1
- package/dist/sys/btrfs.d.ts +2 -3
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +76 -71
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +2 -3
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +48 -53
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +2 -3
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +37 -56
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +2 -3
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +64 -77
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +2 -3
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +151 -129
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +2 -3
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +40 -53
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/installer.d.ts +2 -3
- package/dist/sys/installer.d.ts.map +1 -1
- package/dist/sys/installer.js +81 -91
- package/dist/sys/installer.js.map +1 -1
- package/dist/sys/network_manager.d.ts +2 -3
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +107 -91
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +2 -3
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +305 -223
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +2 -3
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +317 -245
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +2 -3
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +84 -83
- package/dist/sys/snapd.js.map +1 -1
- package/dist/sys/version.d.ts +2 -3
- package/dist/sys/version.d.ts.map +1 -1
- package/dist/sys/version.js +11 -30
- package/dist/sys/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lanforward/lanforward.d.ts +0 -99
- package/dist/lanforward/lanforward.d.ts.map +0 -1
- package/dist/lanforward/lanforward.js +0 -254
- package/dist/lanforward/lanforward.js.map +0 -1
- package/dist/ssdp/ssdp.d.ts +0 -113
- package/dist/ssdp/ssdp.d.ts.map +0 -1
- package/dist/ssdp/ssdp.js +0 -292
- package/dist/ssdp/ssdp.js.map +0 -1
|
@@ -36,25 +36,25 @@ exports.WalkDirectoryRequest = {
|
|
|
36
36
|
const tag = reader.uint32();
|
|
37
37
|
switch (tag >>> 3) {
|
|
38
38
|
case 1:
|
|
39
|
-
if (tag
|
|
39
|
+
if (tag !== 10) {
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
42
|
message.path = reader.string();
|
|
43
43
|
continue;
|
|
44
44
|
case 2:
|
|
45
|
-
if (tag
|
|
45
|
+
if (tag !== 18) {
|
|
46
46
|
break;
|
|
47
47
|
}
|
|
48
48
|
message.pattern = reader.string();
|
|
49
49
|
continue;
|
|
50
50
|
case 3:
|
|
51
|
-
if (tag
|
|
51
|
+
if (tag !== 24) {
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
54
|
message.workerCount = reader.int32();
|
|
55
55
|
continue;
|
|
56
56
|
}
|
|
57
|
-
if ((tag & 7)
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
58
|
break;
|
|
59
59
|
}
|
|
60
60
|
reader.skipType(tag & 7);
|
|
@@ -63,16 +63,22 @@ exports.WalkDirectoryRequest = {
|
|
|
63
63
|
},
|
|
64
64
|
fromJSON(object) {
|
|
65
65
|
return {
|
|
66
|
-
path: isSet(object.path) ? String(object.path) : "",
|
|
67
|
-
pattern: isSet(object.pattern) ? String(object.pattern) : undefined,
|
|
68
|
-
workerCount: isSet(object.workerCount) ? Number(object.workerCount) : undefined,
|
|
66
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
67
|
+
pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : undefined,
|
|
68
|
+
workerCount: isSet(object.workerCount) ? globalThis.Number(object.workerCount) : undefined,
|
|
69
69
|
};
|
|
70
70
|
},
|
|
71
71
|
toJSON(message) {
|
|
72
72
|
const obj = {};
|
|
73
|
-
message.path !==
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
if (message.path !== "") {
|
|
74
|
+
obj.path = message.path;
|
|
75
|
+
}
|
|
76
|
+
if (message.pattern !== undefined) {
|
|
77
|
+
obj.pattern = message.pattern;
|
|
78
|
+
}
|
|
79
|
+
if (message.workerCount !== undefined) {
|
|
80
|
+
obj.workerCount = Math.round(message.workerCount);
|
|
81
|
+
}
|
|
76
82
|
return obj;
|
|
77
83
|
},
|
|
78
84
|
create(base) {
|
|
@@ -105,13 +111,13 @@ exports.WalkDirectoryReply = {
|
|
|
105
111
|
const tag = reader.uint32();
|
|
106
112
|
switch (tag >>> 3) {
|
|
107
113
|
case 1:
|
|
108
|
-
if (tag
|
|
114
|
+
if (tag !== 10) {
|
|
109
115
|
break;
|
|
110
116
|
}
|
|
111
117
|
message.result.push(exports.WalkDirectoryReply_Entry.decode(reader, reader.uint32()));
|
|
112
118
|
continue;
|
|
113
119
|
}
|
|
114
|
-
if ((tag & 7)
|
|
120
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
115
121
|
break;
|
|
116
122
|
}
|
|
117
123
|
reader.skipType(tag & 7);
|
|
@@ -120,16 +126,16 @@ exports.WalkDirectoryReply = {
|
|
|
120
126
|
},
|
|
121
127
|
fromJSON(object) {
|
|
122
128
|
return {
|
|
123
|
-
result: Array.isArray(object === null || object === void 0 ? void 0 : object.result)
|
|
129
|
+
result: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.result)
|
|
130
|
+
? object.result.map((e) => exports.WalkDirectoryReply_Entry.fromJSON(e))
|
|
131
|
+
: [],
|
|
124
132
|
};
|
|
125
133
|
},
|
|
126
134
|
toJSON(message) {
|
|
135
|
+
var _a;
|
|
127
136
|
const obj = {};
|
|
128
|
-
if (message.result) {
|
|
129
|
-
obj.result = message.result.map((e) =>
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
obj.result = [];
|
|
137
|
+
if ((_a = message.result) === null || _a === void 0 ? void 0 : _a.length) {
|
|
138
|
+
obj.result = message.result.map((e) => exports.WalkDirectoryReply_Entry.toJSON(e));
|
|
133
139
|
}
|
|
134
140
|
return obj;
|
|
135
141
|
},
|
|
@@ -170,31 +176,31 @@ exports.WalkDirectoryReply_Entry = {
|
|
|
170
176
|
const tag = reader.uint32();
|
|
171
177
|
switch (tag >>> 3) {
|
|
172
178
|
case 1:
|
|
173
|
-
if (tag
|
|
179
|
+
if (tag !== 10) {
|
|
174
180
|
break;
|
|
175
181
|
}
|
|
176
182
|
message.path = reader.string();
|
|
177
183
|
continue;
|
|
178
184
|
case 2:
|
|
179
|
-
if (tag
|
|
185
|
+
if (tag !== 18) {
|
|
180
186
|
break;
|
|
181
187
|
}
|
|
182
188
|
message.base = reader.string();
|
|
183
189
|
continue;
|
|
184
190
|
case 3:
|
|
185
|
-
if (tag
|
|
191
|
+
if (tag !== 24) {
|
|
186
192
|
break;
|
|
187
193
|
}
|
|
188
194
|
message.size = longToNumber(reader.int64());
|
|
189
195
|
continue;
|
|
190
196
|
case 4:
|
|
191
|
-
if (tag
|
|
197
|
+
if (tag !== 32) {
|
|
192
198
|
break;
|
|
193
199
|
}
|
|
194
200
|
message.dirp = reader.bool();
|
|
195
201
|
continue;
|
|
196
202
|
}
|
|
197
|
-
if ((tag & 7)
|
|
203
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
198
204
|
break;
|
|
199
205
|
}
|
|
200
206
|
reader.skipType(tag & 7);
|
|
@@ -203,18 +209,26 @@ exports.WalkDirectoryReply_Entry = {
|
|
|
203
209
|
},
|
|
204
210
|
fromJSON(object) {
|
|
205
211
|
return {
|
|
206
|
-
path: isSet(object.path) ? String(object.path) : "",
|
|
207
|
-
base: isSet(object.base) ? String(object.base) : "",
|
|
208
|
-
size: isSet(object.size) ? Number(object.size) : 0,
|
|
209
|
-
dirp: isSet(object.dirp) ? Boolean(object.dirp) : false,
|
|
212
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
213
|
+
base: isSet(object.base) ? globalThis.String(object.base) : "",
|
|
214
|
+
size: isSet(object.size) ? globalThis.Number(object.size) : 0,
|
|
215
|
+
dirp: isSet(object.dirp) ? globalThis.Boolean(object.dirp) : false,
|
|
210
216
|
};
|
|
211
217
|
},
|
|
212
218
|
toJSON(message) {
|
|
213
219
|
const obj = {};
|
|
214
|
-
message.path !==
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
message.
|
|
220
|
+
if (message.path !== "") {
|
|
221
|
+
obj.path = message.path;
|
|
222
|
+
}
|
|
223
|
+
if (message.base !== "") {
|
|
224
|
+
obj.base = message.base;
|
|
225
|
+
}
|
|
226
|
+
if (message.size !== 0) {
|
|
227
|
+
obj.size = Math.round(message.size);
|
|
228
|
+
}
|
|
229
|
+
if (message.dirp === true) {
|
|
230
|
+
obj.dirp = message.dirp;
|
|
231
|
+
}
|
|
218
232
|
return obj;
|
|
219
233
|
},
|
|
220
234
|
create(base) {
|
|
@@ -248,13 +262,13 @@ exports.OpenFileManagerRequest = {
|
|
|
248
262
|
const tag = reader.uint32();
|
|
249
263
|
switch (tag >>> 3) {
|
|
250
264
|
case 1:
|
|
251
|
-
if (tag
|
|
265
|
+
if (tag !== 10) {
|
|
252
266
|
break;
|
|
253
267
|
}
|
|
254
268
|
message.path = reader.string();
|
|
255
269
|
continue;
|
|
256
270
|
}
|
|
257
|
-
if ((tag & 7)
|
|
271
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
258
272
|
break;
|
|
259
273
|
}
|
|
260
274
|
reader.skipType(tag & 7);
|
|
@@ -262,11 +276,13 @@ exports.OpenFileManagerRequest = {
|
|
|
262
276
|
return message;
|
|
263
277
|
},
|
|
264
278
|
fromJSON(object) {
|
|
265
|
-
return { path: isSet(object.path) ? String(object.path) : "" };
|
|
279
|
+
return { path: isSet(object.path) ? globalThis.String(object.path) : "" };
|
|
266
280
|
},
|
|
267
281
|
toJSON(message) {
|
|
268
282
|
const obj = {};
|
|
269
|
-
message.path !==
|
|
283
|
+
if (message.path !== "") {
|
|
284
|
+
obj.path = message.path;
|
|
285
|
+
}
|
|
270
286
|
return obj;
|
|
271
287
|
},
|
|
272
288
|
create(base) {
|
|
@@ -300,19 +316,19 @@ exports.OpenRequest = {
|
|
|
300
316
|
const tag = reader.uint32();
|
|
301
317
|
switch (tag >>> 3) {
|
|
302
318
|
case 1:
|
|
303
|
-
if (tag
|
|
319
|
+
if (tag !== 10) {
|
|
304
320
|
break;
|
|
305
321
|
}
|
|
306
322
|
message.appId = reader.string();
|
|
307
323
|
continue;
|
|
308
324
|
case 2:
|
|
309
|
-
if (tag
|
|
325
|
+
if (tag !== 18) {
|
|
310
326
|
break;
|
|
311
327
|
}
|
|
312
328
|
message.path = reader.string();
|
|
313
329
|
continue;
|
|
314
330
|
}
|
|
315
|
-
if ((tag & 7)
|
|
331
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
316
332
|
break;
|
|
317
333
|
}
|
|
318
334
|
reader.skipType(tag & 7);
|
|
@@ -321,14 +337,18 @@ exports.OpenRequest = {
|
|
|
321
337
|
},
|
|
322
338
|
fromJSON(object) {
|
|
323
339
|
return {
|
|
324
|
-
appId: isSet(object.appId) ? String(object.appId) : "",
|
|
325
|
-
path: isSet(object.path) ? String(object.path) : "",
|
|
340
|
+
appId: isSet(object.appId) ? globalThis.String(object.appId) : "",
|
|
341
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
326
342
|
};
|
|
327
343
|
},
|
|
328
344
|
toJSON(message) {
|
|
329
345
|
const obj = {};
|
|
330
|
-
message.appId !==
|
|
331
|
-
|
|
346
|
+
if (message.appId !== "") {
|
|
347
|
+
obj.appId = message.appId;
|
|
348
|
+
}
|
|
349
|
+
if (message.path !== "") {
|
|
350
|
+
obj.path = message.path;
|
|
351
|
+
}
|
|
332
352
|
return obj;
|
|
333
353
|
},
|
|
334
354
|
create(base) {
|
|
@@ -360,13 +380,13 @@ exports.OpenReply = {
|
|
|
360
380
|
const tag = reader.uint32();
|
|
361
381
|
switch (tag >>> 3) {
|
|
362
382
|
case 1:
|
|
363
|
-
if (tag
|
|
383
|
+
if (tag !== 10) {
|
|
364
384
|
break;
|
|
365
385
|
}
|
|
366
386
|
message.url = reader.string();
|
|
367
387
|
continue;
|
|
368
388
|
}
|
|
369
|
-
if ((tag & 7)
|
|
389
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
370
390
|
break;
|
|
371
391
|
}
|
|
372
392
|
reader.skipType(tag & 7);
|
|
@@ -374,11 +394,13 @@ exports.OpenReply = {
|
|
|
374
394
|
return message;
|
|
375
395
|
},
|
|
376
396
|
fromJSON(object) {
|
|
377
|
-
return { url: isSet(object.url) ? String(object.url) : undefined };
|
|
397
|
+
return { url: isSet(object.url) ? globalThis.String(object.url) : undefined };
|
|
378
398
|
},
|
|
379
399
|
toJSON(message) {
|
|
380
400
|
const obj = {};
|
|
381
|
-
message.url !== undefined
|
|
401
|
+
if (message.url !== undefined) {
|
|
402
|
+
obj.url = message.url;
|
|
403
|
+
}
|
|
382
404
|
return obj;
|
|
383
405
|
},
|
|
384
406
|
create(base) {
|
|
@@ -415,25 +437,25 @@ exports.QueryRequest = {
|
|
|
415
437
|
const tag = reader.uint32();
|
|
416
438
|
switch (tag >>> 3) {
|
|
417
439
|
case 1:
|
|
418
|
-
if (tag
|
|
440
|
+
if (tag !== 10) {
|
|
419
441
|
break;
|
|
420
442
|
}
|
|
421
443
|
message.mime = reader.string();
|
|
422
444
|
continue;
|
|
423
445
|
case 2:
|
|
424
|
-
if (tag
|
|
446
|
+
if (tag !== 18) {
|
|
425
447
|
break;
|
|
426
448
|
}
|
|
427
449
|
message.path = reader.string();
|
|
428
450
|
continue;
|
|
429
451
|
case 3:
|
|
430
|
-
if (tag
|
|
452
|
+
if (tag !== 24) {
|
|
431
453
|
break;
|
|
432
454
|
}
|
|
433
455
|
message.iconSize = reader.int32();
|
|
434
456
|
continue;
|
|
435
457
|
}
|
|
436
|
-
if ((tag & 7)
|
|
458
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
437
459
|
break;
|
|
438
460
|
}
|
|
439
461
|
reader.skipType(tag & 7);
|
|
@@ -442,16 +464,22 @@ exports.QueryRequest = {
|
|
|
442
464
|
},
|
|
443
465
|
fromJSON(object) {
|
|
444
466
|
return {
|
|
445
|
-
mime: isSet(object.mime) ? String(object.mime) : "",
|
|
446
|
-
path: isSet(object.path) ? String(object.path) : undefined,
|
|
447
|
-
iconSize: isSet(object.iconSize) ? Number(object.iconSize) : undefined,
|
|
467
|
+
mime: isSet(object.mime) ? globalThis.String(object.mime) : "",
|
|
468
|
+
path: isSet(object.path) ? globalThis.String(object.path) : undefined,
|
|
469
|
+
iconSize: isSet(object.iconSize) ? globalThis.Number(object.iconSize) : undefined,
|
|
448
470
|
};
|
|
449
471
|
},
|
|
450
472
|
toJSON(message) {
|
|
451
473
|
const obj = {};
|
|
452
|
-
message.mime !==
|
|
453
|
-
|
|
454
|
-
|
|
474
|
+
if (message.mime !== "") {
|
|
475
|
+
obj.mime = message.mime;
|
|
476
|
+
}
|
|
477
|
+
if (message.path !== undefined) {
|
|
478
|
+
obj.path = message.path;
|
|
479
|
+
}
|
|
480
|
+
if (message.iconSize !== undefined) {
|
|
481
|
+
obj.iconSize = Math.round(message.iconSize);
|
|
482
|
+
}
|
|
455
483
|
return obj;
|
|
456
484
|
},
|
|
457
485
|
create(base) {
|
|
@@ -484,13 +512,13 @@ exports.QueryReply = {
|
|
|
484
512
|
const tag = reader.uint32();
|
|
485
513
|
switch (tag >>> 3) {
|
|
486
514
|
case 1:
|
|
487
|
-
if (tag
|
|
515
|
+
if (tag !== 10) {
|
|
488
516
|
break;
|
|
489
517
|
}
|
|
490
518
|
message.appList.push(exports.AppShortcut.decode(reader, reader.uint32()));
|
|
491
519
|
continue;
|
|
492
520
|
}
|
|
493
|
-
if ((tag & 7)
|
|
521
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
494
522
|
break;
|
|
495
523
|
}
|
|
496
524
|
reader.skipType(tag & 7);
|
|
@@ -498,15 +526,15 @@ exports.QueryReply = {
|
|
|
498
526
|
return message;
|
|
499
527
|
},
|
|
500
528
|
fromJSON(object) {
|
|
501
|
-
return {
|
|
529
|
+
return {
|
|
530
|
+
appList: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.appList) ? object.appList.map((e) => exports.AppShortcut.fromJSON(e)) : [],
|
|
531
|
+
};
|
|
502
532
|
},
|
|
503
533
|
toJSON(message) {
|
|
534
|
+
var _a;
|
|
504
535
|
const obj = {};
|
|
505
|
-
if (message.appList) {
|
|
506
|
-
obj.appList = message.appList.map((e) =>
|
|
507
|
-
}
|
|
508
|
-
else {
|
|
509
|
-
obj.appList = [];
|
|
536
|
+
if ((_a = message.appList) === null || _a === void 0 ? void 0 : _a.length) {
|
|
537
|
+
obj.appList = message.appList.map((e) => exports.AppShortcut.toJSON(e));
|
|
510
538
|
}
|
|
511
539
|
return obj;
|
|
512
540
|
},
|
|
@@ -544,25 +572,25 @@ exports.AppShortcut = {
|
|
|
544
572
|
const tag = reader.uint32();
|
|
545
573
|
switch (tag >>> 3) {
|
|
546
574
|
case 1:
|
|
547
|
-
if (tag
|
|
575
|
+
if (tag !== 10) {
|
|
548
576
|
break;
|
|
549
577
|
}
|
|
550
578
|
message.appId = reader.string();
|
|
551
579
|
continue;
|
|
552
580
|
case 2:
|
|
553
|
-
if (tag
|
|
581
|
+
if (tag !== 18) {
|
|
554
582
|
break;
|
|
555
583
|
}
|
|
556
584
|
message.title = reader.string();
|
|
557
585
|
continue;
|
|
558
586
|
case 3:
|
|
559
|
-
if (tag
|
|
587
|
+
if (tag !== 26) {
|
|
560
588
|
break;
|
|
561
589
|
}
|
|
562
590
|
message.icon = reader.string();
|
|
563
591
|
continue;
|
|
564
592
|
}
|
|
565
|
-
if ((tag & 7)
|
|
593
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
566
594
|
break;
|
|
567
595
|
}
|
|
568
596
|
reader.skipType(tag & 7);
|
|
@@ -571,16 +599,22 @@ exports.AppShortcut = {
|
|
|
571
599
|
},
|
|
572
600
|
fromJSON(object) {
|
|
573
601
|
return {
|
|
574
|
-
appId: isSet(object.appId) ? String(object.appId) : "",
|
|
575
|
-
title: isSet(object.title) ? String(object.title) : "",
|
|
576
|
-
icon: isSet(object.icon) ? String(object.icon) : "",
|
|
602
|
+
appId: isSet(object.appId) ? globalThis.String(object.appId) : "",
|
|
603
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
604
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
577
605
|
};
|
|
578
606
|
},
|
|
579
607
|
toJSON(message) {
|
|
580
608
|
const obj = {};
|
|
581
|
-
message.appId !==
|
|
582
|
-
|
|
583
|
-
|
|
609
|
+
if (message.appId !== "") {
|
|
610
|
+
obj.appId = message.appId;
|
|
611
|
+
}
|
|
612
|
+
if (message.title !== "") {
|
|
613
|
+
obj.title = message.title;
|
|
614
|
+
}
|
|
615
|
+
if (message.icon !== "") {
|
|
616
|
+
obj.icon = message.icon;
|
|
617
|
+
}
|
|
584
618
|
return obj;
|
|
585
619
|
},
|
|
586
620
|
create(base) {
|
|
@@ -704,15 +738,10 @@ class GrpcWebImpl {
|
|
|
704
738
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
705
739
|
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
706
740
|
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (_a = this.options) === null || _a === void 0 ? void 0 : _a.metadata.headersMap), metadata === null || metadata === void 0 ? void 0 : metadata.headersMap))
|
|
707
|
-
: metadata
|
|
741
|
+
: metadata !== null && metadata !== void 0 ? metadata : this.options.metadata;
|
|
708
742
|
return new Promise((resolve, reject) => {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
host: this.host,
|
|
712
|
-
metadata: maybeCombinedMetadata,
|
|
713
|
-
transport: this.options.transport,
|
|
714
|
-
debug: this.options.debug,
|
|
715
|
-
onEnd: function (response) {
|
|
743
|
+
var _a;
|
|
744
|
+
grpc_web_1.grpc.unary(methodDesc, Object.assign(Object.assign({ request, host: this.host, metadata: maybeCombinedMetadata !== null && maybeCombinedMetadata !== void 0 ? maybeCombinedMetadata : {} }, (this.options.transport !== undefined ? { transport: this.options.transport } : {})), { debug: (_a = this.options.debug) !== null && _a !== void 0 ? _a : false, onEnd: function (response) {
|
|
716
745
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
717
746
|
resolve(response.message.toObject());
|
|
718
747
|
}
|
|
@@ -720,28 +749,22 @@ class GrpcWebImpl {
|
|
|
720
749
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
721
750
|
reject(err);
|
|
722
751
|
}
|
|
723
|
-
}
|
|
724
|
-
});
|
|
752
|
+
} }));
|
|
725
753
|
});
|
|
726
754
|
}
|
|
727
755
|
invoke(methodDesc, _request, metadata) {
|
|
728
|
-
var _a;
|
|
729
|
-
const upStreamCodes = this.options.upStreamRetryCodes
|
|
756
|
+
var _a, _b, _c;
|
|
757
|
+
const upStreamCodes = (_a = this.options.upStreamRetryCodes) !== null && _a !== void 0 ? _a : [];
|
|
730
758
|
const DEFAULT_TIMEOUT_TIME = 3000;
|
|
731
759
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
760
|
+
const transport = (_b = this.options.streamingTransport) !== null && _b !== void 0 ? _b : this.options.transport;
|
|
732
761
|
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
733
|
-
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (
|
|
734
|
-
: metadata
|
|
762
|
+
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (_c = this.options) === null || _c === void 0 ? void 0 : _c.metadata.headersMap), metadata === null || metadata === void 0 ? void 0 : metadata.headersMap))
|
|
763
|
+
: metadata !== null && metadata !== void 0 ? metadata : this.options.metadata;
|
|
735
764
|
return new rxjs_1.Observable((observer) => {
|
|
736
|
-
const upStream = (
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
request,
|
|
740
|
-
transport: this.options.streamingTransport || this.options.transport,
|
|
741
|
-
metadata: maybeCombinedMetadata,
|
|
742
|
-
debug: this.options.debug,
|
|
743
|
-
onMessage: (next) => observer.next(next),
|
|
744
|
-
onEnd: (code, message, trailers) => {
|
|
765
|
+
const upStream = () => {
|
|
766
|
+
var _a;
|
|
767
|
+
const client = grpc_web_1.grpc.invoke(methodDesc, Object.assign(Object.assign({ host: this.host, request }, (transport !== undefined ? { transport } : {})), { metadata: maybeCombinedMetadata !== null && maybeCombinedMetadata !== void 0 ? maybeCombinedMetadata : {}, debug: (_a = this.options.debug) !== null && _a !== void 0 ? _a : false, onMessage: (next) => observer.next(next), onEnd: (code, message, trailers) => {
|
|
745
768
|
if (code === 0) {
|
|
746
769
|
observer.complete();
|
|
747
770
|
}
|
|
@@ -754,37 +777,17 @@ class GrpcWebImpl {
|
|
|
754
777
|
err.metadata = trailers;
|
|
755
778
|
observer.error(err);
|
|
756
779
|
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
if (!observer.closed) {
|
|
761
|
-
return client.close();
|
|
762
|
-
}
|
|
763
|
-
});
|
|
764
|
-
});
|
|
780
|
+
} }));
|
|
781
|
+
observer.add(() => client.close());
|
|
782
|
+
};
|
|
765
783
|
upStream();
|
|
766
784
|
}).pipe((0, operators_1.share)());
|
|
767
785
|
}
|
|
768
786
|
}
|
|
769
787
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
770
|
-
var tsProtoGlobalThis = (() => {
|
|
771
|
-
if (typeof globalThis !== "undefined") {
|
|
772
|
-
return globalThis;
|
|
773
|
-
}
|
|
774
|
-
if (typeof self !== "undefined") {
|
|
775
|
-
return self;
|
|
776
|
-
}
|
|
777
|
-
if (typeof window !== "undefined") {
|
|
778
|
-
return window;
|
|
779
|
-
}
|
|
780
|
-
if (typeof global !== "undefined") {
|
|
781
|
-
return global;
|
|
782
|
-
}
|
|
783
|
-
throw "Unable to locate global object";
|
|
784
|
-
})();
|
|
785
788
|
function longToNumber(long) {
|
|
786
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
787
|
-
throw new
|
|
789
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
790
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
788
791
|
}
|
|
789
792
|
return long.toNumber();
|
|
790
793
|
}
|
|
@@ -795,7 +798,7 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
795
798
|
function isSet(value) {
|
|
796
799
|
return value !== null && value !== undefined;
|
|
797
800
|
}
|
|
798
|
-
class GrpcWebError extends
|
|
801
|
+
class GrpcWebError extends globalThis.Error {
|
|
799
802
|
constructor(message, code, metadata) {
|
|
800
803
|
super(message);
|
|
801
804
|
this.code = code;
|