@lazycatcloud/sdk 0.1.295 → 0.1.297
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 +54 -67
- 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 +134 -113
- 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 +86 -91
- 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 +115 -112
- 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 +195 -162
- 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 +355 -273
- 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 +87 -79
- 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 +81 -90
- 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 +141 -128
- 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 +128 -124
- 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 +69 -75
- 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 +133 -117
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +2 -3
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +144 -129
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/app_common.d.ts.map +1 -1
- package/dist/extentions/app_common.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/localdevice/client.d.ts +2 -3
- package/dist/localdevice/client.d.ts.map +1 -1
- package/dist/localdevice/client.js +22 -40
- 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 +74 -89
- 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 +63 -65
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +8 -3
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +46 -46
- 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 +85 -83
- 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 +96 -90
- 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 +19 -37
- 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 +84 -88
- 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 +348 -280
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/localdevice/remote-input-method.d.ts +2 -3
- package/dist/localdevice/remote-input-method.d.ts.map +1 -1
- package/dist/localdevice/remote-input-method.js +52 -69
- package/dist/localdevice/remote-input-method.js.map +1 -1
- package/dist/package.json +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 +177 -147
- 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 +66 -70
- package/dist/sys/OS_upgrader.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 +70 -80
- 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 +80 -76
- 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 +52 -58
- 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 +41 -61
- 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 +82 -87
- 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 +155 -134
- 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 +44 -58
- 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 +99 -101
- 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 +144 -117
- 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 +313 -230
- 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 +358 -270
- 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 +88 -88
- 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 +15 -35
- 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
- package/dist/sys/OS_daemon.d.ts +0 -111
- package/dist/sys/OS_daemon.d.ts.map +0 -1
- package/dist/sys/OS_daemon.js +0 -281
- package/dist/sys/OS_daemon.js.map +0 -1
- package/dist/sys/box-status.d.ts +0 -572
- package/dist/sys/box-status.d.ts.map +0 -1
- package/dist/sys/box-status.js +0 -911
- package/dist/sys/box-status.js.map +0 -1
package/dist/sys/OS_snapshot.js
CHANGED
|
@@ -102,13 +102,13 @@ exports.SnapshotBackupPoolRequest = {
|
|
|
102
102
|
const tag = reader.uint32();
|
|
103
103
|
switch (tag >>> 3) {
|
|
104
104
|
case 1:
|
|
105
|
-
if (tag
|
|
105
|
+
if (tag !== 10) {
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
108
|
message.PoolName = reader.string();
|
|
109
109
|
continue;
|
|
110
110
|
}
|
|
111
|
-
if ((tag & 7)
|
|
111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
reader.skipType(tag & 7);
|
|
@@ -116,11 +116,13 @@ exports.SnapshotBackupPoolRequest = {
|
|
|
116
116
|
return message;
|
|
117
117
|
},
|
|
118
118
|
fromJSON(object) {
|
|
119
|
-
return { PoolName: isSet(object.PoolName) ? String(object.PoolName) : "" };
|
|
119
|
+
return { PoolName: isSet(object.PoolName) ? globalThis.String(object.PoolName) : "" };
|
|
120
120
|
},
|
|
121
121
|
toJSON(message) {
|
|
122
122
|
const obj = {};
|
|
123
|
-
message.PoolName !==
|
|
123
|
+
if (message.PoolName !== "") {
|
|
124
|
+
obj.PoolName = message.PoolName;
|
|
125
|
+
}
|
|
124
126
|
return obj;
|
|
125
127
|
},
|
|
126
128
|
create(base) {
|
|
@@ -151,13 +153,13 @@ exports.SnapshotBackupPoolListResponse = {
|
|
|
151
153
|
const tag = reader.uint32();
|
|
152
154
|
switch (tag >>> 3) {
|
|
153
155
|
case 1:
|
|
154
|
-
if (tag
|
|
156
|
+
if (tag !== 10) {
|
|
155
157
|
break;
|
|
156
158
|
}
|
|
157
159
|
message.PoolNameList.push(reader.string());
|
|
158
160
|
continue;
|
|
159
161
|
}
|
|
160
|
-
if ((tag & 7)
|
|
162
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
161
163
|
break;
|
|
162
164
|
}
|
|
163
165
|
reader.skipType(tag & 7);
|
|
@@ -165,15 +167,17 @@ exports.SnapshotBackupPoolListResponse = {
|
|
|
165
167
|
return message;
|
|
166
168
|
},
|
|
167
169
|
fromJSON(object) {
|
|
168
|
-
return {
|
|
170
|
+
return {
|
|
171
|
+
PoolNameList: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.PoolNameList)
|
|
172
|
+
? object.PoolNameList.map((e) => globalThis.String(e))
|
|
173
|
+
: [],
|
|
174
|
+
};
|
|
169
175
|
},
|
|
170
176
|
toJSON(message) {
|
|
177
|
+
var _a;
|
|
171
178
|
const obj = {};
|
|
172
|
-
if (message.PoolNameList) {
|
|
173
|
-
obj.PoolNameList = message.PoolNameList
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
obj.PoolNameList = [];
|
|
179
|
+
if ((_a = message.PoolNameList) === null || _a === void 0 ? void 0 : _a.length) {
|
|
180
|
+
obj.PoolNameList = message.PoolNameList;
|
|
177
181
|
}
|
|
178
182
|
return obj;
|
|
179
183
|
},
|
|
@@ -205,13 +209,13 @@ exports.SnapshotDatasetRequest = {
|
|
|
205
209
|
const tag = reader.uint32();
|
|
206
210
|
switch (tag >>> 3) {
|
|
207
211
|
case 1:
|
|
208
|
-
if (tag
|
|
212
|
+
if (tag !== 10) {
|
|
209
213
|
break;
|
|
210
214
|
}
|
|
211
215
|
message.DatasetPath = reader.string();
|
|
212
216
|
continue;
|
|
213
217
|
}
|
|
214
|
-
if ((tag & 7)
|
|
218
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
215
219
|
break;
|
|
216
220
|
}
|
|
217
221
|
reader.skipType(tag & 7);
|
|
@@ -219,11 +223,13 @@ exports.SnapshotDatasetRequest = {
|
|
|
219
223
|
return message;
|
|
220
224
|
},
|
|
221
225
|
fromJSON(object) {
|
|
222
|
-
return { DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "" };
|
|
226
|
+
return { DatasetPath: isSet(object.DatasetPath) ? globalThis.String(object.DatasetPath) : "" };
|
|
223
227
|
},
|
|
224
228
|
toJSON(message) {
|
|
225
229
|
const obj = {};
|
|
226
|
-
message.DatasetPath !==
|
|
230
|
+
if (message.DatasetPath !== "") {
|
|
231
|
+
obj.DatasetPath = message.DatasetPath;
|
|
232
|
+
}
|
|
227
233
|
return obj;
|
|
228
234
|
},
|
|
229
235
|
create(base) {
|
|
@@ -257,19 +263,19 @@ exports.SnapshotDatasetBackupRequest = {
|
|
|
257
263
|
const tag = reader.uint32();
|
|
258
264
|
switch (tag >>> 3) {
|
|
259
265
|
case 1:
|
|
260
|
-
if (tag
|
|
266
|
+
if (tag !== 10) {
|
|
261
267
|
break;
|
|
262
268
|
}
|
|
263
269
|
message.PoolName = reader.string();
|
|
264
270
|
continue;
|
|
265
271
|
case 2:
|
|
266
|
-
if (tag
|
|
272
|
+
if (tag !== 18) {
|
|
267
273
|
break;
|
|
268
274
|
}
|
|
269
275
|
message.DatasetPath = reader.string();
|
|
270
276
|
continue;
|
|
271
277
|
}
|
|
272
|
-
if ((tag & 7)
|
|
278
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
273
279
|
break;
|
|
274
280
|
}
|
|
275
281
|
reader.skipType(tag & 7);
|
|
@@ -278,14 +284,18 @@ exports.SnapshotDatasetBackupRequest = {
|
|
|
278
284
|
},
|
|
279
285
|
fromJSON(object) {
|
|
280
286
|
return {
|
|
281
|
-
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
282
|
-
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
287
|
+
PoolName: isSet(object.PoolName) ? globalThis.String(object.PoolName) : "",
|
|
288
|
+
DatasetPath: isSet(object.DatasetPath) ? globalThis.String(object.DatasetPath) : "",
|
|
283
289
|
};
|
|
284
290
|
},
|
|
285
291
|
toJSON(message) {
|
|
286
292
|
const obj = {};
|
|
287
|
-
message.PoolName !==
|
|
288
|
-
|
|
293
|
+
if (message.PoolName !== "") {
|
|
294
|
+
obj.PoolName = message.PoolName;
|
|
295
|
+
}
|
|
296
|
+
if (message.DatasetPath !== "") {
|
|
297
|
+
obj.DatasetPath = message.DatasetPath;
|
|
298
|
+
}
|
|
289
299
|
return obj;
|
|
290
300
|
},
|
|
291
301
|
create(base) {
|
|
@@ -326,31 +336,31 @@ exports.SnapshotDatasetDesc = {
|
|
|
326
336
|
const tag = reader.uint32();
|
|
327
337
|
switch (tag >>> 3) {
|
|
328
338
|
case 1:
|
|
329
|
-
if (tag
|
|
339
|
+
if (tag !== 10) {
|
|
330
340
|
break;
|
|
331
341
|
}
|
|
332
342
|
message.Path = reader.string();
|
|
333
343
|
continue;
|
|
334
344
|
case 2:
|
|
335
|
-
if (tag
|
|
345
|
+
if (tag !== 16) {
|
|
336
346
|
break;
|
|
337
347
|
}
|
|
338
348
|
message.BytesUsed = longToNumber(reader.uint64());
|
|
339
349
|
continue;
|
|
340
350
|
case 3:
|
|
341
|
-
if (tag
|
|
351
|
+
if (tag !== 24) {
|
|
342
352
|
break;
|
|
343
353
|
}
|
|
344
354
|
message.SnapshotBytesUsed = longToNumber(reader.uint64());
|
|
345
355
|
continue;
|
|
346
356
|
case 4:
|
|
347
|
-
if (tag
|
|
357
|
+
if (tag !== 32) {
|
|
348
358
|
break;
|
|
349
359
|
}
|
|
350
360
|
message.CreatedAt = longToNumber(reader.uint64());
|
|
351
361
|
continue;
|
|
352
362
|
}
|
|
353
|
-
if ((tag & 7)
|
|
363
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
354
364
|
break;
|
|
355
365
|
}
|
|
356
366
|
reader.skipType(tag & 7);
|
|
@@ -359,18 +369,26 @@ exports.SnapshotDatasetDesc = {
|
|
|
359
369
|
},
|
|
360
370
|
fromJSON(object) {
|
|
361
371
|
return {
|
|
362
|
-
Path: isSet(object.Path) ? String(object.Path) : "",
|
|
363
|
-
BytesUsed: isSet(object.BytesUsed) ? Number(object.BytesUsed) : 0,
|
|
364
|
-
SnapshotBytesUsed: isSet(object.SnapshotBytesUsed) ? Number(object.SnapshotBytesUsed) : 0,
|
|
365
|
-
CreatedAt: isSet(object.CreatedAt) ? Number(object.CreatedAt) : 0,
|
|
372
|
+
Path: isSet(object.Path) ? globalThis.String(object.Path) : "",
|
|
373
|
+
BytesUsed: isSet(object.BytesUsed) ? globalThis.Number(object.BytesUsed) : 0,
|
|
374
|
+
SnapshotBytesUsed: isSet(object.SnapshotBytesUsed) ? globalThis.Number(object.SnapshotBytesUsed) : 0,
|
|
375
|
+
CreatedAt: isSet(object.CreatedAt) ? globalThis.Number(object.CreatedAt) : 0,
|
|
366
376
|
};
|
|
367
377
|
},
|
|
368
378
|
toJSON(message) {
|
|
369
379
|
const obj = {};
|
|
370
|
-
message.Path !==
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
message.
|
|
380
|
+
if (message.Path !== "") {
|
|
381
|
+
obj.Path = message.Path;
|
|
382
|
+
}
|
|
383
|
+
if (message.BytesUsed !== 0) {
|
|
384
|
+
obj.BytesUsed = Math.round(message.BytesUsed);
|
|
385
|
+
}
|
|
386
|
+
if (message.SnapshotBytesUsed !== 0) {
|
|
387
|
+
obj.SnapshotBytesUsed = Math.round(message.SnapshotBytesUsed);
|
|
388
|
+
}
|
|
389
|
+
if (message.CreatedAt !== 0) {
|
|
390
|
+
obj.CreatedAt = Math.round(message.CreatedAt);
|
|
391
|
+
}
|
|
374
392
|
return obj;
|
|
375
393
|
},
|
|
376
394
|
create(base) {
|
|
@@ -404,13 +422,13 @@ exports.SnapshotDatasetListResponse = {
|
|
|
404
422
|
const tag = reader.uint32();
|
|
405
423
|
switch (tag >>> 3) {
|
|
406
424
|
case 1:
|
|
407
|
-
if (tag
|
|
425
|
+
if (tag !== 10) {
|
|
408
426
|
break;
|
|
409
427
|
}
|
|
410
428
|
message.DatasetList.push(exports.SnapshotDatasetDesc.decode(reader, reader.uint32()));
|
|
411
429
|
continue;
|
|
412
430
|
}
|
|
413
|
-
if ((tag & 7)
|
|
431
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
414
432
|
break;
|
|
415
433
|
}
|
|
416
434
|
reader.skipType(tag & 7);
|
|
@@ -419,18 +437,16 @@ exports.SnapshotDatasetListResponse = {
|
|
|
419
437
|
},
|
|
420
438
|
fromJSON(object) {
|
|
421
439
|
return {
|
|
422
|
-
DatasetList: Array.isArray(object === null || object === void 0 ? void 0 : object.DatasetList)
|
|
440
|
+
DatasetList: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.DatasetList)
|
|
423
441
|
? object.DatasetList.map((e) => exports.SnapshotDatasetDesc.fromJSON(e))
|
|
424
442
|
: [],
|
|
425
443
|
};
|
|
426
444
|
},
|
|
427
445
|
toJSON(message) {
|
|
446
|
+
var _a;
|
|
428
447
|
const obj = {};
|
|
429
|
-
if (message.DatasetList) {
|
|
430
|
-
obj.DatasetList = message.DatasetList.map((e) =>
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
obj.DatasetList = [];
|
|
448
|
+
if ((_a = message.DatasetList) === null || _a === void 0 ? void 0 : _a.length) {
|
|
449
|
+
obj.DatasetList = message.DatasetList.map((e) => exports.SnapshotDatasetDesc.toJSON(e));
|
|
434
450
|
}
|
|
435
451
|
return obj;
|
|
436
452
|
},
|
|
@@ -465,19 +481,19 @@ exports.SnapshotRequest = {
|
|
|
465
481
|
const tag = reader.uint32();
|
|
466
482
|
switch (tag >>> 3) {
|
|
467
483
|
case 1:
|
|
468
|
-
if (tag
|
|
484
|
+
if (tag !== 10) {
|
|
469
485
|
break;
|
|
470
486
|
}
|
|
471
487
|
message.DatasetPath = reader.string();
|
|
472
488
|
continue;
|
|
473
489
|
case 2:
|
|
474
|
-
if (tag
|
|
490
|
+
if (tag !== 18) {
|
|
475
491
|
break;
|
|
476
492
|
}
|
|
477
493
|
message.SnapshotName = reader.string();
|
|
478
494
|
continue;
|
|
479
495
|
}
|
|
480
|
-
if ((tag & 7)
|
|
496
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
481
497
|
break;
|
|
482
498
|
}
|
|
483
499
|
reader.skipType(tag & 7);
|
|
@@ -486,14 +502,18 @@ exports.SnapshotRequest = {
|
|
|
486
502
|
},
|
|
487
503
|
fromJSON(object) {
|
|
488
504
|
return {
|
|
489
|
-
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
490
|
-
SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
|
|
505
|
+
DatasetPath: isSet(object.DatasetPath) ? globalThis.String(object.DatasetPath) : "",
|
|
506
|
+
SnapshotName: isSet(object.SnapshotName) ? globalThis.String(object.SnapshotName) : "",
|
|
491
507
|
};
|
|
492
508
|
},
|
|
493
509
|
toJSON(message) {
|
|
494
510
|
const obj = {};
|
|
495
|
-
message.DatasetPath !==
|
|
496
|
-
|
|
511
|
+
if (message.DatasetPath !== "") {
|
|
512
|
+
obj.DatasetPath = message.DatasetPath;
|
|
513
|
+
}
|
|
514
|
+
if (message.SnapshotName !== "") {
|
|
515
|
+
obj.SnapshotName = message.SnapshotName;
|
|
516
|
+
}
|
|
497
517
|
return obj;
|
|
498
518
|
},
|
|
499
519
|
create(base) {
|
|
@@ -531,25 +551,25 @@ exports.SnapshotDesc = {
|
|
|
531
551
|
const tag = reader.uint32();
|
|
532
552
|
switch (tag >>> 3) {
|
|
533
553
|
case 1:
|
|
534
|
-
if (tag
|
|
554
|
+
if (tag !== 10) {
|
|
535
555
|
break;
|
|
536
556
|
}
|
|
537
557
|
message.Name = reader.string();
|
|
538
558
|
continue;
|
|
539
559
|
case 2:
|
|
540
|
-
if (tag
|
|
560
|
+
if (tag !== 16) {
|
|
541
561
|
break;
|
|
542
562
|
}
|
|
543
563
|
message.BytesUsed = longToNumber(reader.uint64());
|
|
544
564
|
continue;
|
|
545
565
|
case 3:
|
|
546
|
-
if (tag
|
|
566
|
+
if (tag !== 24) {
|
|
547
567
|
break;
|
|
548
568
|
}
|
|
549
569
|
message.CreatedAt = longToNumber(reader.uint64());
|
|
550
570
|
continue;
|
|
551
571
|
}
|
|
552
|
-
if ((tag & 7)
|
|
572
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
553
573
|
break;
|
|
554
574
|
}
|
|
555
575
|
reader.skipType(tag & 7);
|
|
@@ -558,16 +578,22 @@ exports.SnapshotDesc = {
|
|
|
558
578
|
},
|
|
559
579
|
fromJSON(object) {
|
|
560
580
|
return {
|
|
561
|
-
Name: isSet(object.Name) ? String(object.Name) : "",
|
|
562
|
-
BytesUsed: isSet(object.BytesUsed) ? Number(object.BytesUsed) : 0,
|
|
563
|
-
CreatedAt: isSet(object.CreatedAt) ? Number(object.CreatedAt) : 0,
|
|
581
|
+
Name: isSet(object.Name) ? globalThis.String(object.Name) : "",
|
|
582
|
+
BytesUsed: isSet(object.BytesUsed) ? globalThis.Number(object.BytesUsed) : 0,
|
|
583
|
+
CreatedAt: isSet(object.CreatedAt) ? globalThis.Number(object.CreatedAt) : 0,
|
|
564
584
|
};
|
|
565
585
|
},
|
|
566
586
|
toJSON(message) {
|
|
567
587
|
const obj = {};
|
|
568
|
-
message.Name !==
|
|
569
|
-
|
|
570
|
-
|
|
588
|
+
if (message.Name !== "") {
|
|
589
|
+
obj.Name = message.Name;
|
|
590
|
+
}
|
|
591
|
+
if (message.BytesUsed !== 0) {
|
|
592
|
+
obj.BytesUsed = Math.round(message.BytesUsed);
|
|
593
|
+
}
|
|
594
|
+
if (message.CreatedAt !== 0) {
|
|
595
|
+
obj.CreatedAt = Math.round(message.CreatedAt);
|
|
596
|
+
}
|
|
571
597
|
return obj;
|
|
572
598
|
},
|
|
573
599
|
create(base) {
|
|
@@ -600,13 +626,13 @@ exports.SnapshotListResponse = {
|
|
|
600
626
|
const tag = reader.uint32();
|
|
601
627
|
switch (tag >>> 3) {
|
|
602
628
|
case 1:
|
|
603
|
-
if (tag
|
|
629
|
+
if (tag !== 10) {
|
|
604
630
|
break;
|
|
605
631
|
}
|
|
606
632
|
message.SnapshotList.push(exports.SnapshotDesc.decode(reader, reader.uint32()));
|
|
607
633
|
continue;
|
|
608
634
|
}
|
|
609
|
-
if ((tag & 7)
|
|
635
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
610
636
|
break;
|
|
611
637
|
}
|
|
612
638
|
reader.skipType(tag & 7);
|
|
@@ -615,18 +641,16 @@ exports.SnapshotListResponse = {
|
|
|
615
641
|
},
|
|
616
642
|
fromJSON(object) {
|
|
617
643
|
return {
|
|
618
|
-
SnapshotList: Array.isArray(object === null || object === void 0 ? void 0 : object.SnapshotList)
|
|
644
|
+
SnapshotList: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.SnapshotList)
|
|
619
645
|
? object.SnapshotList.map((e) => exports.SnapshotDesc.fromJSON(e))
|
|
620
646
|
: [],
|
|
621
647
|
};
|
|
622
648
|
},
|
|
623
649
|
toJSON(message) {
|
|
650
|
+
var _a;
|
|
624
651
|
const obj = {};
|
|
625
|
-
if (message.SnapshotList) {
|
|
626
|
-
obj.SnapshotList = message.SnapshotList.map((e) =>
|
|
627
|
-
}
|
|
628
|
-
else {
|
|
629
|
-
obj.SnapshotList = [];
|
|
652
|
+
if ((_a = message.SnapshotList) === null || _a === void 0 ? void 0 : _a.length) {
|
|
653
|
+
obj.SnapshotList = message.SnapshotList.map((e) => exports.SnapshotDesc.toJSON(e));
|
|
630
654
|
}
|
|
631
655
|
return obj;
|
|
632
656
|
},
|
|
@@ -664,25 +688,25 @@ exports.SnapshotBackupRequest = {
|
|
|
664
688
|
const tag = reader.uint32();
|
|
665
689
|
switch (tag >>> 3) {
|
|
666
690
|
case 1:
|
|
667
|
-
if (tag
|
|
691
|
+
if (tag !== 10) {
|
|
668
692
|
break;
|
|
669
693
|
}
|
|
670
694
|
message.PoolName = reader.string();
|
|
671
695
|
continue;
|
|
672
696
|
case 2:
|
|
673
|
-
if (tag
|
|
697
|
+
if (tag !== 18) {
|
|
674
698
|
break;
|
|
675
699
|
}
|
|
676
700
|
message.DatasetPath = reader.string();
|
|
677
701
|
continue;
|
|
678
702
|
case 3:
|
|
679
|
-
if (tag
|
|
703
|
+
if (tag !== 26) {
|
|
680
704
|
break;
|
|
681
705
|
}
|
|
682
706
|
message.SnapshotName = reader.string();
|
|
683
707
|
continue;
|
|
684
708
|
}
|
|
685
|
-
if ((tag & 7)
|
|
709
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
686
710
|
break;
|
|
687
711
|
}
|
|
688
712
|
reader.skipType(tag & 7);
|
|
@@ -691,16 +715,22 @@ exports.SnapshotBackupRequest = {
|
|
|
691
715
|
},
|
|
692
716
|
fromJSON(object) {
|
|
693
717
|
return {
|
|
694
|
-
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
695
|
-
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
696
|
-
SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
|
|
718
|
+
PoolName: isSet(object.PoolName) ? globalThis.String(object.PoolName) : "",
|
|
719
|
+
DatasetPath: isSet(object.DatasetPath) ? globalThis.String(object.DatasetPath) : "",
|
|
720
|
+
SnapshotName: isSet(object.SnapshotName) ? globalThis.String(object.SnapshotName) : "",
|
|
697
721
|
};
|
|
698
722
|
},
|
|
699
723
|
toJSON(message) {
|
|
700
724
|
const obj = {};
|
|
701
|
-
message.PoolName !==
|
|
702
|
-
|
|
703
|
-
|
|
725
|
+
if (message.PoolName !== "") {
|
|
726
|
+
obj.PoolName = message.PoolName;
|
|
727
|
+
}
|
|
728
|
+
if (message.DatasetPath !== "") {
|
|
729
|
+
obj.DatasetPath = message.DatasetPath;
|
|
730
|
+
}
|
|
731
|
+
if (message.SnapshotName !== "") {
|
|
732
|
+
obj.SnapshotName = message.SnapshotName;
|
|
733
|
+
}
|
|
704
734
|
return obj;
|
|
705
735
|
},
|
|
706
736
|
create(base) {
|
|
@@ -742,31 +772,31 @@ exports.SnapshotBackupTransferRequest = {
|
|
|
742
772
|
const tag = reader.uint32();
|
|
743
773
|
switch (tag >>> 3) {
|
|
744
774
|
case 1:
|
|
745
|
-
if (tag
|
|
775
|
+
if (tag !== 10) {
|
|
746
776
|
break;
|
|
747
777
|
}
|
|
748
778
|
message.PoolName = reader.string();
|
|
749
779
|
continue;
|
|
750
780
|
case 2:
|
|
751
|
-
if (tag
|
|
781
|
+
if (tag !== 18) {
|
|
752
782
|
break;
|
|
753
783
|
}
|
|
754
784
|
message.DatasetPath = reader.string();
|
|
755
785
|
continue;
|
|
756
786
|
case 3:
|
|
757
|
-
if (tag
|
|
787
|
+
if (tag !== 26) {
|
|
758
788
|
break;
|
|
759
789
|
}
|
|
760
790
|
message.SnapshotName = reader.string();
|
|
761
791
|
continue;
|
|
762
792
|
case 4:
|
|
763
|
-
if (tag
|
|
793
|
+
if (tag !== 32) {
|
|
764
794
|
break;
|
|
765
795
|
}
|
|
766
796
|
message.TransferMode = reader.int32();
|
|
767
797
|
continue;
|
|
768
798
|
}
|
|
769
|
-
if ((tag & 7)
|
|
799
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
770
800
|
break;
|
|
771
801
|
}
|
|
772
802
|
reader.skipType(tag & 7);
|
|
@@ -775,18 +805,26 @@ exports.SnapshotBackupTransferRequest = {
|
|
|
775
805
|
},
|
|
776
806
|
fromJSON(object) {
|
|
777
807
|
return {
|
|
778
|
-
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
779
|
-
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
780
|
-
SnapshotName: isSet(object.SnapshotName) ? String(object.SnapshotName) : "",
|
|
808
|
+
PoolName: isSet(object.PoolName) ? globalThis.String(object.PoolName) : "",
|
|
809
|
+
DatasetPath: isSet(object.DatasetPath) ? globalThis.String(object.DatasetPath) : "",
|
|
810
|
+
SnapshotName: isSet(object.SnapshotName) ? globalThis.String(object.SnapshotName) : "",
|
|
781
811
|
TransferMode: isSet(object.TransferMode) ? snapshotTransferModeFromJSON(object.TransferMode) : 0,
|
|
782
812
|
};
|
|
783
813
|
},
|
|
784
814
|
toJSON(message) {
|
|
785
815
|
const obj = {};
|
|
786
|
-
message.PoolName !==
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
message.
|
|
816
|
+
if (message.PoolName !== "") {
|
|
817
|
+
obj.PoolName = message.PoolName;
|
|
818
|
+
}
|
|
819
|
+
if (message.DatasetPath !== "") {
|
|
820
|
+
obj.DatasetPath = message.DatasetPath;
|
|
821
|
+
}
|
|
822
|
+
if (message.SnapshotName !== "") {
|
|
823
|
+
obj.SnapshotName = message.SnapshotName;
|
|
824
|
+
}
|
|
825
|
+
if (message.TransferMode !== 0) {
|
|
826
|
+
obj.TransferMode = snapshotTransferModeToJSON(message.TransferMode);
|
|
827
|
+
}
|
|
790
828
|
return obj;
|
|
791
829
|
},
|
|
792
830
|
create(base) {
|
|
@@ -823,19 +861,19 @@ exports.SnapshotBackupTransferResponse = {
|
|
|
823
861
|
const tag = reader.uint32();
|
|
824
862
|
switch (tag >>> 3) {
|
|
825
863
|
case 1:
|
|
826
|
-
if (tag
|
|
864
|
+
if (tag !== 8) {
|
|
827
865
|
break;
|
|
828
866
|
}
|
|
829
867
|
message.BytesSent = longToNumber(reader.uint64());
|
|
830
868
|
continue;
|
|
831
869
|
case 2:
|
|
832
|
-
if (tag
|
|
870
|
+
if (tag !== 16) {
|
|
833
871
|
break;
|
|
834
872
|
}
|
|
835
873
|
message.BytesTotal = longToNumber(reader.uint64());
|
|
836
874
|
continue;
|
|
837
875
|
}
|
|
838
|
-
if ((tag & 7)
|
|
876
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
839
877
|
break;
|
|
840
878
|
}
|
|
841
879
|
reader.skipType(tag & 7);
|
|
@@ -844,14 +882,18 @@ exports.SnapshotBackupTransferResponse = {
|
|
|
844
882
|
},
|
|
845
883
|
fromJSON(object) {
|
|
846
884
|
return {
|
|
847
|
-
BytesSent: isSet(object.BytesSent) ? Number(object.BytesSent) : 0,
|
|
848
|
-
BytesTotal: isSet(object.BytesTotal) ? Number(object.BytesTotal) : 0,
|
|
885
|
+
BytesSent: isSet(object.BytesSent) ? globalThis.Number(object.BytesSent) : 0,
|
|
886
|
+
BytesTotal: isSet(object.BytesTotal) ? globalThis.Number(object.BytesTotal) : 0,
|
|
849
887
|
};
|
|
850
888
|
},
|
|
851
889
|
toJSON(message) {
|
|
852
890
|
const obj = {};
|
|
853
|
-
message.BytesSent !==
|
|
854
|
-
|
|
891
|
+
if (message.BytesSent !== 0) {
|
|
892
|
+
obj.BytesSent = Math.round(message.BytesSent);
|
|
893
|
+
}
|
|
894
|
+
if (message.BytesTotal !== 0) {
|
|
895
|
+
obj.BytesTotal = Math.round(message.BytesTotal);
|
|
896
|
+
}
|
|
855
897
|
return obj;
|
|
856
898
|
},
|
|
857
899
|
create(base) {
|
|
@@ -886,19 +928,19 @@ exports.SnapshotBackupListRequest = {
|
|
|
886
928
|
const tag = reader.uint32();
|
|
887
929
|
switch (tag >>> 3) {
|
|
888
930
|
case 1:
|
|
889
|
-
if (tag
|
|
931
|
+
if (tag !== 10) {
|
|
890
932
|
break;
|
|
891
933
|
}
|
|
892
934
|
message.PoolName = reader.string();
|
|
893
935
|
continue;
|
|
894
936
|
case 2:
|
|
895
|
-
if (tag
|
|
937
|
+
if (tag !== 18) {
|
|
896
938
|
break;
|
|
897
939
|
}
|
|
898
940
|
message.DatasetPath = reader.string();
|
|
899
941
|
continue;
|
|
900
942
|
}
|
|
901
|
-
if ((tag & 7)
|
|
943
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
902
944
|
break;
|
|
903
945
|
}
|
|
904
946
|
reader.skipType(tag & 7);
|
|
@@ -907,14 +949,18 @@ exports.SnapshotBackupListRequest = {
|
|
|
907
949
|
},
|
|
908
950
|
fromJSON(object) {
|
|
909
951
|
return {
|
|
910
|
-
PoolName: isSet(object.PoolName) ? String(object.PoolName) : "",
|
|
911
|
-
DatasetPath: isSet(object.DatasetPath) ? String(object.DatasetPath) : "",
|
|
952
|
+
PoolName: isSet(object.PoolName) ? globalThis.String(object.PoolName) : "",
|
|
953
|
+
DatasetPath: isSet(object.DatasetPath) ? globalThis.String(object.DatasetPath) : "",
|
|
912
954
|
};
|
|
913
955
|
},
|
|
914
956
|
toJSON(message) {
|
|
915
957
|
const obj = {};
|
|
916
|
-
message.PoolName !==
|
|
917
|
-
|
|
958
|
+
if (message.PoolName !== "") {
|
|
959
|
+
obj.PoolName = message.PoolName;
|
|
960
|
+
}
|
|
961
|
+
if (message.DatasetPath !== "") {
|
|
962
|
+
obj.DatasetPath = message.DatasetPath;
|
|
963
|
+
}
|
|
918
964
|
return obj;
|
|
919
965
|
},
|
|
920
966
|
create(base) {
|
|
@@ -952,25 +998,25 @@ exports.SnapshotStatusResponse = {
|
|
|
952
998
|
const tag = reader.uint32();
|
|
953
999
|
switch (tag >>> 3) {
|
|
954
1000
|
case 1:
|
|
955
|
-
if (tag
|
|
1001
|
+
if (tag !== 8) {
|
|
956
1002
|
break;
|
|
957
1003
|
}
|
|
958
1004
|
message.Status = reader.int32();
|
|
959
1005
|
continue;
|
|
960
1006
|
case 2:
|
|
961
|
-
if (tag
|
|
1007
|
+
if (tag !== 16) {
|
|
962
1008
|
break;
|
|
963
1009
|
}
|
|
964
1010
|
message.BytesSent = longToNumber(reader.uint64());
|
|
965
1011
|
continue;
|
|
966
1012
|
case 3:
|
|
967
|
-
if (tag
|
|
1013
|
+
if (tag !== 24) {
|
|
968
1014
|
break;
|
|
969
1015
|
}
|
|
970
1016
|
message.BytesTotal = longToNumber(reader.uint64());
|
|
971
1017
|
continue;
|
|
972
1018
|
}
|
|
973
|
-
if ((tag & 7)
|
|
1019
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
974
1020
|
break;
|
|
975
1021
|
}
|
|
976
1022
|
reader.skipType(tag & 7);
|
|
@@ -980,15 +1026,21 @@ exports.SnapshotStatusResponse = {
|
|
|
980
1026
|
fromJSON(object) {
|
|
981
1027
|
return {
|
|
982
1028
|
Status: isSet(object.Status) ? snapshotManagerStatusFromJSON(object.Status) : 0,
|
|
983
|
-
BytesSent: isSet(object.BytesSent) ? Number(object.BytesSent) : 0,
|
|
984
|
-
BytesTotal: isSet(object.BytesTotal) ? Number(object.BytesTotal) : 0,
|
|
1029
|
+
BytesSent: isSet(object.BytesSent) ? globalThis.Number(object.BytesSent) : 0,
|
|
1030
|
+
BytesTotal: isSet(object.BytesTotal) ? globalThis.Number(object.BytesTotal) : 0,
|
|
985
1031
|
};
|
|
986
1032
|
},
|
|
987
1033
|
toJSON(message) {
|
|
988
1034
|
const obj = {};
|
|
989
|
-
message.Status !==
|
|
990
|
-
|
|
991
|
-
|
|
1035
|
+
if (message.Status !== 0) {
|
|
1036
|
+
obj.Status = snapshotManagerStatusToJSON(message.Status);
|
|
1037
|
+
}
|
|
1038
|
+
if (message.BytesSent !== 0) {
|
|
1039
|
+
obj.BytesSent = Math.round(message.BytesSent);
|
|
1040
|
+
}
|
|
1041
|
+
if (message.BytesTotal !== 0) {
|
|
1042
|
+
obj.BytesTotal = Math.round(message.BytesTotal);
|
|
1043
|
+
}
|
|
992
1044
|
return obj;
|
|
993
1045
|
},
|
|
994
1046
|
create(base) {
|
|
@@ -1434,15 +1486,10 @@ class GrpcWebImpl {
|
|
|
1434
1486
|
const request = Object.assign(Object.assign({}, _request), methodDesc.requestType);
|
|
1435
1487
|
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
1436
1488
|
? 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))
|
|
1437
|
-
: metadata
|
|
1489
|
+
: metadata !== null && metadata !== void 0 ? metadata : this.options.metadata;
|
|
1438
1490
|
return new Promise((resolve, reject) => {
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
host: this.host,
|
|
1442
|
-
metadata: maybeCombinedMetadata,
|
|
1443
|
-
transport: this.options.transport,
|
|
1444
|
-
debug: this.options.debug,
|
|
1445
|
-
onEnd: function (response) {
|
|
1491
|
+
var _a;
|
|
1492
|
+
const client = 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) {
|
|
1446
1493
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1447
1494
|
resolve(response.message.toObject());
|
|
1448
1495
|
}
|
|
@@ -1450,37 +1497,20 @@ class GrpcWebImpl {
|
|
|
1450
1497
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
1451
1498
|
reject(err);
|
|
1452
1499
|
}
|
|
1453
|
-
}
|
|
1454
|
-
});
|
|
1455
|
-
const abortHandler = () => {
|
|
1456
|
-
client.close();
|
|
1457
|
-
reject(new Error("Aborted"));
|
|
1458
|
-
};
|
|
1500
|
+
} }));
|
|
1459
1501
|
if (abortSignal) {
|
|
1460
|
-
abortSignal.addEventListener("abort",
|
|
1502
|
+
abortSignal.addEventListener("abort", () => {
|
|
1503
|
+
client.close();
|
|
1504
|
+
reject(abortSignal.reason);
|
|
1505
|
+
});
|
|
1461
1506
|
}
|
|
1462
1507
|
});
|
|
1463
1508
|
}
|
|
1464
1509
|
}
|
|
1465
1510
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1466
|
-
var tsProtoGlobalThis = (() => {
|
|
1467
|
-
if (typeof globalThis !== "undefined") {
|
|
1468
|
-
return globalThis;
|
|
1469
|
-
}
|
|
1470
|
-
if (typeof self !== "undefined") {
|
|
1471
|
-
return self;
|
|
1472
|
-
}
|
|
1473
|
-
if (typeof window !== "undefined") {
|
|
1474
|
-
return window;
|
|
1475
|
-
}
|
|
1476
|
-
if (typeof global !== "undefined") {
|
|
1477
|
-
return global;
|
|
1478
|
-
}
|
|
1479
|
-
throw "Unable to locate global object";
|
|
1480
|
-
})();
|
|
1481
1511
|
function longToNumber(long) {
|
|
1482
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1483
|
-
throw new
|
|
1512
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
1513
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1484
1514
|
}
|
|
1485
1515
|
return long.toNumber();
|
|
1486
1516
|
}
|
|
@@ -1491,7 +1521,7 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
1491
1521
|
function isSet(value) {
|
|
1492
1522
|
return value !== null && value !== undefined;
|
|
1493
1523
|
}
|
|
1494
|
-
class GrpcWebError extends
|
|
1524
|
+
class GrpcWebError extends globalThis.Error {
|
|
1495
1525
|
constructor(message, code, metadata) {
|
|
1496
1526
|
super(message);
|
|
1497
1527
|
this.code = code;
|