@vertexvis/stream-api 0.11.1-canary.1 → 0.11.1-canary.2
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/bundle.cjs.js +254 -18
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +254 -18
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -27825,7 +27825,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27825
27825
|
* @interface IModelEntity
|
|
27826
27826
|
* @property {number|Long|null} [entityId] ModelEntity entityId
|
|
27827
27827
|
* @property {vertexvis.protobuf.core.IUuid|null} [sceneItemId] ModelEntity sceneItemId
|
|
27828
|
-
* @property {
|
|
27828
|
+
* @property {Array.<google.protobuf.IAny>|null} [details] ModelEntity details
|
|
27829
27829
|
*/
|
|
27830
27830
|
|
|
27831
27831
|
/**
|
|
@@ -27837,6 +27837,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27837
27837
|
* @param {vertexvis.protobuf.core.IModelEntity=} [properties] Properties to set
|
|
27838
27838
|
*/
|
|
27839
27839
|
function ModelEntity(properties) {
|
|
27840
|
+
this.details = [];
|
|
27840
27841
|
if (properties)
|
|
27841
27842
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27842
27843
|
if (properties[keys[i]] != null)
|
|
@@ -27860,12 +27861,12 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27860
27861
|
ModelEntity.prototype.sceneItemId = null;
|
|
27861
27862
|
|
|
27862
27863
|
/**
|
|
27863
|
-
* ModelEntity
|
|
27864
|
-
* @member {
|
|
27864
|
+
* ModelEntity details.
|
|
27865
|
+
* @member {Array.<google.protobuf.IAny>} details
|
|
27865
27866
|
* @memberof vertexvis.protobuf.core.ModelEntity
|
|
27866
27867
|
* @instance
|
|
27867
27868
|
*/
|
|
27868
|
-
ModelEntity.prototype.
|
|
27869
|
+
ModelEntity.prototype.details = $util.emptyArray;
|
|
27869
27870
|
|
|
27870
27871
|
/**
|
|
27871
27872
|
* Creates a new ModelEntity instance using the specified properties.
|
|
@@ -27895,8 +27896,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27895
27896
|
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.entityId);
|
|
27896
27897
|
if (message.sceneItemId != null && Object.hasOwnProperty.call(message, "sceneItemId"))
|
|
27897
27898
|
$root.vertexvis.protobuf.core.Uuid.encode(message.sceneItemId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
27898
|
-
if (message.
|
|
27899
|
-
|
|
27899
|
+
if (message.details != null && message.details.length)
|
|
27900
|
+
for (let i = 0; i < message.details.length; ++i)
|
|
27901
|
+
$root.google.protobuf.Any.encode(message.details[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27900
27902
|
return writer;
|
|
27901
27903
|
};
|
|
27902
27904
|
|
|
@@ -27938,7 +27940,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27938
27940
|
message.sceneItemId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
27939
27941
|
break;
|
|
27940
27942
|
case 3:
|
|
27941
|
-
message.
|
|
27943
|
+
if (!(message.details && message.details.length))
|
|
27944
|
+
message.details = [];
|
|
27945
|
+
message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32()));
|
|
27942
27946
|
break;
|
|
27943
27947
|
default:
|
|
27944
27948
|
reader.skipType(tag & 7);
|
|
@@ -27983,10 +27987,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27983
27987
|
if (error)
|
|
27984
27988
|
return "sceneItemId." + error;
|
|
27985
27989
|
}
|
|
27986
|
-
if (message.
|
|
27987
|
-
|
|
27988
|
-
|
|
27989
|
-
|
|
27990
|
+
if (message.details != null && message.hasOwnProperty("details")) {
|
|
27991
|
+
if (!Array.isArray(message.details))
|
|
27992
|
+
return "details: array expected";
|
|
27993
|
+
for (let i = 0; i < message.details.length; ++i) {
|
|
27994
|
+
let error = $root.google.protobuf.Any.verify(message.details[i]);
|
|
27995
|
+
if (error)
|
|
27996
|
+
return "details." + error;
|
|
27997
|
+
}
|
|
27990
27998
|
}
|
|
27991
27999
|
return null;
|
|
27992
28000
|
};
|
|
@@ -28017,10 +28025,15 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
28017
28025
|
throw TypeError(".vertexvis.protobuf.core.ModelEntity.sceneItemId: object expected");
|
|
28018
28026
|
message.sceneItemId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.sceneItemId);
|
|
28019
28027
|
}
|
|
28020
|
-
if (object.
|
|
28021
|
-
if (
|
|
28022
|
-
throw TypeError(".vertexvis.protobuf.core.ModelEntity.
|
|
28023
|
-
message.
|
|
28028
|
+
if (object.details) {
|
|
28029
|
+
if (!Array.isArray(object.details))
|
|
28030
|
+
throw TypeError(".vertexvis.protobuf.core.ModelEntity.details: array expected");
|
|
28031
|
+
message.details = [];
|
|
28032
|
+
for (let i = 0; i < object.details.length; ++i) {
|
|
28033
|
+
if (typeof object.details[i] !== "object")
|
|
28034
|
+
throw TypeError(".vertexvis.protobuf.core.ModelEntity.details: object expected");
|
|
28035
|
+
message.details[i] = $root.google.protobuf.Any.fromObject(object.details[i]);
|
|
28036
|
+
}
|
|
28024
28037
|
}
|
|
28025
28038
|
return message;
|
|
28026
28039
|
};
|
|
@@ -28038,6 +28051,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
28038
28051
|
if (!options)
|
|
28039
28052
|
options = {};
|
|
28040
28053
|
let object = {};
|
|
28054
|
+
if (options.arrays || options.defaults)
|
|
28055
|
+
object.details = [];
|
|
28041
28056
|
if (options.defaults) {
|
|
28042
28057
|
if ($util.Long) {
|
|
28043
28058
|
let long = new $util.Long(0, 0, false);
|
|
@@ -28045,7 +28060,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
28045
28060
|
} else
|
|
28046
28061
|
object.entityId = options.longs === String ? "0" : 0;
|
|
28047
28062
|
object.sceneItemId = null;
|
|
28048
|
-
object.entityPathId = null;
|
|
28049
28063
|
}
|
|
28050
28064
|
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
28051
28065
|
if (typeof message.entityId === "number")
|
|
@@ -28054,8 +28068,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
28054
28068
|
object.entityId = options.longs === String ? $util.Long.prototype.toString.call(message.entityId) : options.longs === Number ? new $util.LongBits(message.entityId.low >>> 0, message.entityId.high >>> 0).toNumber() : message.entityId;
|
|
28055
28069
|
if (message.sceneItemId != null && message.hasOwnProperty("sceneItemId"))
|
|
28056
28070
|
object.sceneItemId = $root.vertexvis.protobuf.core.Uuid.toObject(message.sceneItemId, options);
|
|
28057
|
-
if (message.
|
|
28058
|
-
object.
|
|
28071
|
+
if (message.details && message.details.length) {
|
|
28072
|
+
object.details = [];
|
|
28073
|
+
for (let j = 0; j < message.details.length; ++j)
|
|
28074
|
+
object.details[j] = $root.google.protobuf.Any.toObject(message.details[j], options);
|
|
28075
|
+
}
|
|
28059
28076
|
return object;
|
|
28060
28077
|
};
|
|
28061
28078
|
|
|
@@ -28287,6 +28304,225 @@ const google = $root.google = (() => {
|
|
|
28287
28304
|
*/
|
|
28288
28305
|
const protobuf = {};
|
|
28289
28306
|
|
|
28307
|
+
protobuf.Any = (function() {
|
|
28308
|
+
|
|
28309
|
+
/**
|
|
28310
|
+
* Properties of an Any.
|
|
28311
|
+
* @memberof google.protobuf
|
|
28312
|
+
* @interface IAny
|
|
28313
|
+
* @property {string|null} [type_url] Any type_url
|
|
28314
|
+
* @property {Uint8Array|null} [value] Any value
|
|
28315
|
+
*/
|
|
28316
|
+
|
|
28317
|
+
/**
|
|
28318
|
+
* Constructs a new Any.
|
|
28319
|
+
* @memberof google.protobuf
|
|
28320
|
+
* @classdesc Represents an Any.
|
|
28321
|
+
* @implements IAny
|
|
28322
|
+
* @constructor
|
|
28323
|
+
* @param {google.protobuf.IAny=} [properties] Properties to set
|
|
28324
|
+
*/
|
|
28325
|
+
function Any(properties) {
|
|
28326
|
+
if (properties)
|
|
28327
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28328
|
+
if (properties[keys[i]] != null)
|
|
28329
|
+
this[keys[i]] = properties[keys[i]];
|
|
28330
|
+
}
|
|
28331
|
+
|
|
28332
|
+
/**
|
|
28333
|
+
* Any type_url.
|
|
28334
|
+
* @member {string} type_url
|
|
28335
|
+
* @memberof google.protobuf.Any
|
|
28336
|
+
* @instance
|
|
28337
|
+
*/
|
|
28338
|
+
Any.prototype.type_url = "";
|
|
28339
|
+
|
|
28340
|
+
/**
|
|
28341
|
+
* Any value.
|
|
28342
|
+
* @member {Uint8Array} value
|
|
28343
|
+
* @memberof google.protobuf.Any
|
|
28344
|
+
* @instance
|
|
28345
|
+
*/
|
|
28346
|
+
Any.prototype.value = $util.newBuffer([]);
|
|
28347
|
+
|
|
28348
|
+
/**
|
|
28349
|
+
* Creates a new Any instance using the specified properties.
|
|
28350
|
+
* @function create
|
|
28351
|
+
* @memberof google.protobuf.Any
|
|
28352
|
+
* @static
|
|
28353
|
+
* @param {google.protobuf.IAny=} [properties] Properties to set
|
|
28354
|
+
* @returns {google.protobuf.Any} Any instance
|
|
28355
|
+
*/
|
|
28356
|
+
Any.create = function create(properties) {
|
|
28357
|
+
return new Any(properties);
|
|
28358
|
+
};
|
|
28359
|
+
|
|
28360
|
+
/**
|
|
28361
|
+
* Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
28362
|
+
* @function encode
|
|
28363
|
+
* @memberof google.protobuf.Any
|
|
28364
|
+
* @static
|
|
28365
|
+
* @param {google.protobuf.IAny} message Any message or plain object to encode
|
|
28366
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28367
|
+
* @returns {$protobuf.Writer} Writer
|
|
28368
|
+
*/
|
|
28369
|
+
Any.encode = function encode(message, writer) {
|
|
28370
|
+
if (!writer)
|
|
28371
|
+
writer = $Writer.create();
|
|
28372
|
+
if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url"))
|
|
28373
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url);
|
|
28374
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
28375
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value);
|
|
28376
|
+
return writer;
|
|
28377
|
+
};
|
|
28378
|
+
|
|
28379
|
+
/**
|
|
28380
|
+
* Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
28381
|
+
* @function encodeDelimited
|
|
28382
|
+
* @memberof google.protobuf.Any
|
|
28383
|
+
* @static
|
|
28384
|
+
* @param {google.protobuf.IAny} message Any message or plain object to encode
|
|
28385
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28386
|
+
* @returns {$protobuf.Writer} Writer
|
|
28387
|
+
*/
|
|
28388
|
+
Any.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28389
|
+
return this.encode(message, writer).ldelim();
|
|
28390
|
+
};
|
|
28391
|
+
|
|
28392
|
+
/**
|
|
28393
|
+
* Decodes an Any message from the specified reader or buffer.
|
|
28394
|
+
* @function decode
|
|
28395
|
+
* @memberof google.protobuf.Any
|
|
28396
|
+
* @static
|
|
28397
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28398
|
+
* @param {number} [length] Message length if known beforehand
|
|
28399
|
+
* @returns {google.protobuf.Any} Any
|
|
28400
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28401
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28402
|
+
*/
|
|
28403
|
+
Any.decode = function decode(reader, length) {
|
|
28404
|
+
if (!(reader instanceof $Reader))
|
|
28405
|
+
reader = $Reader.create(reader);
|
|
28406
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any();
|
|
28407
|
+
while (reader.pos < end) {
|
|
28408
|
+
let tag = reader.uint32();
|
|
28409
|
+
switch (tag >>> 3) {
|
|
28410
|
+
case 1:
|
|
28411
|
+
message.type_url = reader.string();
|
|
28412
|
+
break;
|
|
28413
|
+
case 2:
|
|
28414
|
+
message.value = reader.bytes();
|
|
28415
|
+
break;
|
|
28416
|
+
default:
|
|
28417
|
+
reader.skipType(tag & 7);
|
|
28418
|
+
break;
|
|
28419
|
+
}
|
|
28420
|
+
}
|
|
28421
|
+
return message;
|
|
28422
|
+
};
|
|
28423
|
+
|
|
28424
|
+
/**
|
|
28425
|
+
* Decodes an Any message from the specified reader or buffer, length delimited.
|
|
28426
|
+
* @function decodeDelimited
|
|
28427
|
+
* @memberof google.protobuf.Any
|
|
28428
|
+
* @static
|
|
28429
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28430
|
+
* @returns {google.protobuf.Any} Any
|
|
28431
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28432
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28433
|
+
*/
|
|
28434
|
+
Any.decodeDelimited = function decodeDelimited(reader) {
|
|
28435
|
+
if (!(reader instanceof $Reader))
|
|
28436
|
+
reader = new $Reader(reader);
|
|
28437
|
+
return this.decode(reader, reader.uint32());
|
|
28438
|
+
};
|
|
28439
|
+
|
|
28440
|
+
/**
|
|
28441
|
+
* Verifies an Any message.
|
|
28442
|
+
* @function verify
|
|
28443
|
+
* @memberof google.protobuf.Any
|
|
28444
|
+
* @static
|
|
28445
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28446
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28447
|
+
*/
|
|
28448
|
+
Any.verify = function verify(message) {
|
|
28449
|
+
if (typeof message !== "object" || message === null)
|
|
28450
|
+
return "object expected";
|
|
28451
|
+
if (message.type_url != null && message.hasOwnProperty("type_url"))
|
|
28452
|
+
if (!$util.isString(message.type_url))
|
|
28453
|
+
return "type_url: string expected";
|
|
28454
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
28455
|
+
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
|
28456
|
+
return "value: buffer expected";
|
|
28457
|
+
return null;
|
|
28458
|
+
};
|
|
28459
|
+
|
|
28460
|
+
/**
|
|
28461
|
+
* Creates an Any message from a plain object. Also converts values to their respective internal types.
|
|
28462
|
+
* @function fromObject
|
|
28463
|
+
* @memberof google.protobuf.Any
|
|
28464
|
+
* @static
|
|
28465
|
+
* @param {Object.<string,*>} object Plain object
|
|
28466
|
+
* @returns {google.protobuf.Any} Any
|
|
28467
|
+
*/
|
|
28468
|
+
Any.fromObject = function fromObject(object) {
|
|
28469
|
+
if (object instanceof $root.google.protobuf.Any)
|
|
28470
|
+
return object;
|
|
28471
|
+
let message = new $root.google.protobuf.Any();
|
|
28472
|
+
if (object.type_url != null)
|
|
28473
|
+
message.type_url = String(object.type_url);
|
|
28474
|
+
if (object.value != null)
|
|
28475
|
+
if (typeof object.value === "string")
|
|
28476
|
+
$util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
|
|
28477
|
+
else if (object.value.length)
|
|
28478
|
+
message.value = object.value;
|
|
28479
|
+
return message;
|
|
28480
|
+
};
|
|
28481
|
+
|
|
28482
|
+
/**
|
|
28483
|
+
* Creates a plain object from an Any message. Also converts values to other types if specified.
|
|
28484
|
+
* @function toObject
|
|
28485
|
+
* @memberof google.protobuf.Any
|
|
28486
|
+
* @static
|
|
28487
|
+
* @param {google.protobuf.Any} message Any
|
|
28488
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28489
|
+
* @returns {Object.<string,*>} Plain object
|
|
28490
|
+
*/
|
|
28491
|
+
Any.toObject = function toObject(message, options) {
|
|
28492
|
+
if (!options)
|
|
28493
|
+
options = {};
|
|
28494
|
+
let object = {};
|
|
28495
|
+
if (options.defaults) {
|
|
28496
|
+
object.type_url = "";
|
|
28497
|
+
if (options.bytes === String)
|
|
28498
|
+
object.value = "";
|
|
28499
|
+
else {
|
|
28500
|
+
object.value = [];
|
|
28501
|
+
if (options.bytes !== Array)
|
|
28502
|
+
object.value = $util.newBuffer(object.value);
|
|
28503
|
+
}
|
|
28504
|
+
}
|
|
28505
|
+
if (message.type_url != null && message.hasOwnProperty("type_url"))
|
|
28506
|
+
object.type_url = message.type_url;
|
|
28507
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
28508
|
+
object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
|
|
28509
|
+
return object;
|
|
28510
|
+
};
|
|
28511
|
+
|
|
28512
|
+
/**
|
|
28513
|
+
* Converts this Any to JSON.
|
|
28514
|
+
* @function toJSON
|
|
28515
|
+
* @memberof google.protobuf.Any
|
|
28516
|
+
* @instance
|
|
28517
|
+
* @returns {Object.<string,*>} JSON object
|
|
28518
|
+
*/
|
|
28519
|
+
Any.prototype.toJSON = function toJSON() {
|
|
28520
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
28521
|
+
};
|
|
28522
|
+
|
|
28523
|
+
return Any;
|
|
28524
|
+
})();
|
|
28525
|
+
|
|
28290
28526
|
protobuf.Duration = (function() {
|
|
28291
28527
|
|
|
28292
28528
|
/**
|