@itwin/core-backend 4.1.0-dev.8 → 4.1.0-dev.80
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/CHANGELOG.md +99 -1
- package/lib/cjs/BackendHubAccess.js.map +1 -1
- package/lib/cjs/BackendLoggerCategory.js.map +1 -1
- package/lib/cjs/BisCoreSchema.js.map +1 -1
- package/lib/cjs/BlobContainerService.d.ts +38 -28
- package/lib/cjs/BlobContainerService.d.ts.map +1 -1
- package/lib/cjs/BlobContainerService.js.map +1 -1
- package/lib/cjs/BriefcaseManager.d.ts +8 -5
- package/lib/cjs/BriefcaseManager.d.ts.map +1 -1
- package/lib/cjs/BriefcaseManager.js +9 -16
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/Category.d.ts +4 -16
- package/lib/cjs/Category.d.ts.map +1 -1
- package/lib/cjs/Category.js +0 -12
- package/lib/cjs/Category.js.map +1 -1
- package/lib/cjs/ChangeSummaryManager.js +2 -2
- package/lib/cjs/ChangeSummaryManager.js.map +1 -1
- package/lib/cjs/ChangedElementsDb.js.map +1 -1
- package/lib/cjs/ChangedElementsManager.js.map +1 -1
- package/lib/cjs/ChannelControl.d.ts +5 -1
- package/lib/cjs/ChannelControl.d.ts.map +1 -1
- package/lib/cjs/ChannelControl.js +10 -5
- package/lib/cjs/ChannelControl.js.map +1 -1
- package/lib/cjs/CheckpointManager.d.ts.map +1 -1
- package/lib/cjs/CheckpointManager.js +20 -9
- package/lib/cjs/CheckpointManager.js.map +1 -1
- package/lib/cjs/ClassRegistry.d.ts +2 -1
- package/lib/cjs/ClassRegistry.d.ts.map +1 -1
- package/lib/cjs/ClassRegistry.js +7 -6
- package/lib/cjs/ClassRegistry.js.map +1 -1
- package/lib/cjs/CloudSqlite.d.ts +57 -40
- package/lib/cjs/CloudSqlite.d.ts.map +1 -1
- package/lib/cjs/CloudSqlite.js +54 -39
- package/lib/cjs/CloudSqlite.js.map +1 -1
- package/lib/cjs/CodeService.js.map +1 -1
- package/lib/cjs/CodeSpecs.js.map +1 -1
- package/lib/cjs/ConcurrentQuery.js.map +1 -1
- package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
- package/lib/cjs/DevTools.js.map +1 -1
- package/lib/cjs/DisplayStyle.d.ts +2 -5
- package/lib/cjs/DisplayStyle.d.ts.map +1 -1
- package/lib/cjs/DisplayStyle.js +0 -3
- package/lib/cjs/DisplayStyle.js.map +1 -1
- package/lib/cjs/ECDb.d.ts +6 -0
- package/lib/cjs/ECDb.d.ts.map +1 -1
- package/lib/cjs/ECDb.js +6 -0
- package/lib/cjs/ECDb.js.map +1 -1
- package/lib/cjs/ECSchemaXmlContext.d.ts +28 -1
- package/lib/cjs/ECSchemaXmlContext.d.ts.map +1 -1
- package/lib/cjs/ECSchemaXmlContext.js +28 -1
- package/lib/cjs/ECSchemaXmlContext.js.map +1 -1
- package/lib/cjs/ECSqlStatement.js.map +1 -1
- package/lib/cjs/Element.d.ts +40 -97
- package/lib/cjs/Element.d.ts.map +1 -1
- package/lib/cjs/Element.js +0 -57
- package/lib/cjs/Element.js.map +1 -1
- package/lib/cjs/ElementAspect.d.ts +2 -4
- package/lib/cjs/ElementAspect.d.ts.map +1 -1
- package/lib/cjs/ElementAspect.js +2 -4
- package/lib/cjs/ElementAspect.js.map +1 -1
- package/lib/cjs/ElementGraphics.js.map +1 -1
- package/lib/cjs/ElementTreeWalker.js.map +1 -1
- package/lib/cjs/Entity.d.ts +5 -2
- package/lib/cjs/Entity.d.ts.map +1 -1
- package/lib/cjs/Entity.js +10 -2
- package/lib/cjs/Entity.js.map +1 -1
- package/lib/cjs/EntityReferences.js.map +1 -1
- package/lib/cjs/ExportGraphics.js.map +1 -1
- package/lib/cjs/ExternalSource.d.ts +4 -11
- package/lib/cjs/ExternalSource.d.ts.map +1 -1
- package/lib/cjs/ExternalSource.js +0 -7
- package/lib/cjs/ExternalSource.js.map +1 -1
- package/lib/cjs/GeoCoordConfig.js.map +1 -1
- package/lib/cjs/GeometrySummary.js +47 -47
- package/lib/cjs/GeometrySummary.js.map +1 -1
- package/lib/cjs/HubMock.js.map +1 -1
- package/lib/cjs/IModelCloneContext.js.map +1 -1
- package/lib/cjs/IModelDb.d.ts +61 -26
- package/lib/cjs/IModelDb.d.ts.map +1 -1
- package/lib/cjs/IModelDb.js +164 -83
- package/lib/cjs/IModelDb.js.map +1 -1
- package/lib/cjs/IModelElementCloneContext.js.map +1 -1
- package/lib/cjs/IModelHost.d.ts +1 -3
- package/lib/cjs/IModelHost.d.ts.map +1 -1
- package/lib/cjs/IModelHost.js +3 -5
- package/lib/cjs/IModelHost.js.map +1 -1
- package/lib/cjs/IModelJsFs.js.map +1 -1
- package/lib/cjs/IpcHost.js.map +1 -1
- package/lib/cjs/LineStyle.js.map +1 -1
- package/lib/cjs/LocalHub.js +1 -1
- package/lib/cjs/LocalHub.js.map +1 -1
- package/lib/cjs/LocalhostIpcHost.js.map +1 -1
- package/lib/cjs/Material.d.ts +0 -1
- package/lib/cjs/Material.d.ts.map +1 -1
- package/lib/cjs/Material.js +1 -2
- package/lib/cjs/Material.js.map +1 -1
- package/lib/cjs/Model.d.ts +4 -13
- package/lib/cjs/Model.d.ts.map +1 -1
- package/lib/cjs/Model.js +0 -9
- package/lib/cjs/Model.js.map +1 -1
- package/lib/cjs/NativeAppStorage.js.map +1 -1
- package/lib/cjs/NativeHost.js.map +1 -1
- package/lib/cjs/NavigationRelationship.js.map +1 -1
- package/lib/cjs/PromiseMemoizer.js.map +1 -1
- package/lib/cjs/PropertyStore.d.ts +3 -3
- package/lib/cjs/PropertyStore.d.ts.map +1 -1
- package/lib/cjs/PropertyStore.js +2 -5
- package/lib/cjs/PropertyStore.js.map +1 -1
- package/lib/cjs/Relationship.d.ts +2 -5
- package/lib/cjs/Relationship.d.ts.map +1 -1
- package/lib/cjs/Relationship.js +0 -3
- package/lib/cjs/Relationship.js.map +1 -1
- package/lib/cjs/RpcBackend.js.map +1 -1
- package/lib/cjs/SQLiteDb.d.ts +1 -1
- package/lib/cjs/SQLiteDb.d.ts.map +1 -1
- package/lib/cjs/SQLiteDb.js +1 -1
- package/lib/cjs/SQLiteDb.js.map +1 -1
- package/lib/cjs/Schema.d.ts +0 -1
- package/lib/cjs/Schema.d.ts.map +1 -1
- package/lib/cjs/Schema.js +0 -1
- package/lib/cjs/Schema.js.map +1 -1
- package/lib/cjs/SchemaUtils.d.ts +19 -0
- package/lib/cjs/SchemaUtils.d.ts.map +1 -0
- package/lib/cjs/SchemaUtils.js +42 -0
- package/lib/cjs/SchemaUtils.js.map +1 -0
- package/lib/cjs/ServerBasedLocks.js.map +1 -1
- package/lib/cjs/SqliteStatement.d.ts +13 -1
- package/lib/cjs/SqliteStatement.d.ts.map +1 -1
- package/lib/cjs/SqliteStatement.js +23 -1
- package/lib/cjs/SqliteStatement.js.map +1 -1
- package/lib/cjs/Texture.d.ts +3 -4
- package/lib/cjs/Texture.d.ts.map +1 -1
- package/lib/cjs/Texture.js +1 -2
- package/lib/cjs/Texture.js.map +1 -1
- package/lib/cjs/TileStorage.d.ts +3 -0
- package/lib/cjs/TileStorage.d.ts.map +1 -1
- package/lib/cjs/TileStorage.js +9 -1
- package/lib/cjs/TileStorage.js.map +1 -1
- package/lib/cjs/TxnManager.js.map +1 -1
- package/lib/cjs/ViewDefinition.d.ts +7 -28
- package/lib/cjs/ViewDefinition.d.ts.map +1 -1
- package/lib/cjs/ViewDefinition.js +0 -21
- package/lib/cjs/ViewDefinition.js.map +1 -1
- package/lib/cjs/ViewStateHydrator.js.map +1 -1
- package/lib/cjs/ViewStore.d.ts +488 -0
- package/lib/cjs/ViewStore.d.ts.map +1 -0
- package/lib/cjs/ViewStore.js +1246 -0
- package/lib/cjs/ViewStore.js.map +1 -0
- package/lib/cjs/assets/IModelChange.02.00.00.ecschema.xml +90 -90
- package/lib/cjs/assets/Settings/Schemas/Cloud.Schema.json +44 -44
- package/lib/cjs/assets/Settings/Schemas/Gcs.schema.json +31 -31
- package/lib/cjs/assets/Settings/Schemas/Workspace.Schema.json +52 -52
- package/lib/cjs/assets/Settings/backend.setting.json5 +132 -132
- package/lib/cjs/core-backend.d.ts +2 -0
- package/lib/cjs/core-backend.d.ts.map +1 -1
- package/lib/cjs/core-backend.js +2 -0
- package/lib/cjs/core-backend.js.map +1 -1
- package/lib/cjs/domains/FunctionalElements.d.ts +6 -12
- package/lib/cjs/domains/FunctionalElements.d.ts.map +1 -1
- package/lib/cjs/domains/FunctionalElements.js +0 -6
- package/lib/cjs/domains/FunctionalElements.js.map +1 -1
- package/lib/cjs/domains/FunctionalSchema.js.map +1 -1
- package/lib/cjs/domains/GenericElements.js.map +1 -1
- package/lib/cjs/domains/GenericSchema.js.map +1 -1
- package/lib/cjs/rpc/multipart.js.map +1 -1
- package/lib/cjs/rpc/tracing.js +2 -2
- package/lib/cjs/rpc/tracing.js.map +1 -1
- package/lib/cjs/rpc/web/logging.js.map +1 -1
- package/lib/cjs/rpc/web/request.js.map +1 -1
- package/lib/cjs/rpc/web/response.js.map +1 -1
- package/lib/cjs/rpc-impl/DevToolsRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts +5 -3
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js +53 -36
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js +0 -2
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
- package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/WipRpcImpl.js.map +1 -1
- package/lib/cjs/workspace/Settings.js.map +1 -1
- package/lib/cjs/workspace/SettingsSchemas.js.map +1 -1
- package/lib/cjs/workspace/Workspace.d.ts +1 -1
- package/lib/cjs/workspace/Workspace.d.ts.map +1 -1
- package/lib/cjs/workspace/Workspace.js +4 -4
- package/lib/cjs/workspace/Workspace.js.map +1 -1
- package/package.json +21 -40
package/lib/cjs/Element.js
CHANGED
|
@@ -38,9 +38,6 @@ class Element extends Entity_1.Entity {
|
|
|
38
38
|
static get className() { return "Element"; }
|
|
39
39
|
/** @internal */
|
|
40
40
|
static get protectedOperations() { return ["onInsert", "onUpdate", "onDelete"]; }
|
|
41
|
-
/** constructor for Element.
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
41
|
constructor(props, iModel) {
|
|
45
42
|
super(props, iModel);
|
|
46
43
|
this.code = core_common_1.Code.fromJSON(props.code); // TODO: Validate props.code - don't silently fail if it is the wrong type
|
|
@@ -216,9 +213,6 @@ class Element extends Entity_1.Entity {
|
|
|
216
213
|
* @beta
|
|
217
214
|
*/
|
|
218
215
|
static onAllInputsHandled(_id, _iModel) { }
|
|
219
|
-
/** Save this Element's properties to an object for serializing to JSON.
|
|
220
|
-
* @internal
|
|
221
|
-
*/
|
|
222
216
|
toJSON() {
|
|
223
217
|
const val = super.toJSON();
|
|
224
218
|
if (core_common_1.Code.isValid(this.code))
|
|
@@ -326,7 +320,6 @@ exports.Element = Element;
|
|
|
326
320
|
class GeometricElement extends (_b = Element) {
|
|
327
321
|
/** @internal */
|
|
328
322
|
static get className() { return "GeometricElement"; }
|
|
329
|
-
/** @internal */
|
|
330
323
|
constructor(props, iModel) {
|
|
331
324
|
super(props, iModel);
|
|
332
325
|
this.category = core_bentley_1.Id64.fromJSON(props.category);
|
|
@@ -339,7 +332,6 @@ class GeometricElement extends (_b = Element) {
|
|
|
339
332
|
/** Get the [Transform]($geometry) from the Placement of this GeometricElement */
|
|
340
333
|
getPlacementTransform() { return this.placement.transform; }
|
|
341
334
|
calculateRange3d() { return this.placement.calculateRange(); }
|
|
342
|
-
/** Obtain the JSON representation of this element. */
|
|
343
335
|
toJSON() {
|
|
344
336
|
const val = super.toJSON();
|
|
345
337
|
val.category = this.category;
|
|
@@ -369,14 +361,12 @@ exports.GeometricElement = GeometricElement;
|
|
|
369
361
|
class GeometricElement3d extends GeometricElement {
|
|
370
362
|
/** @internal */
|
|
371
363
|
static get className() { return "GeometricElement3d"; }
|
|
372
|
-
/** @internal */
|
|
373
364
|
constructor(props, iModel) {
|
|
374
365
|
super(props, iModel);
|
|
375
366
|
this.placement = core_common_1.Placement3d.fromJSON(props.placement);
|
|
376
367
|
if (props.typeDefinition)
|
|
377
368
|
this.typeDefinition = core_common_1.TypeDefinition.fromJSON(props.typeDefinition);
|
|
378
369
|
}
|
|
379
|
-
/** @internal */
|
|
380
370
|
toJSON() {
|
|
381
371
|
const val = super.toJSON();
|
|
382
372
|
val.placement = this.placement;
|
|
@@ -397,7 +387,6 @@ exports.GeometricElement3d = GeometricElement3d;
|
|
|
397
387
|
class GraphicalElement3d extends GeometricElement3d {
|
|
398
388
|
/** @internal */
|
|
399
389
|
static get className() { return "GraphicalElement3d"; }
|
|
400
|
-
/** @internal */
|
|
401
390
|
constructor(props, iModel) { super(props, iModel); }
|
|
402
391
|
}
|
|
403
392
|
exports.GraphicalElement3d = GraphicalElement3d;
|
|
@@ -407,14 +396,12 @@ exports.GraphicalElement3d = GraphicalElement3d;
|
|
|
407
396
|
class GeometricElement2d extends GeometricElement {
|
|
408
397
|
/** @internal */
|
|
409
398
|
static get className() { return "GeometricElement2d"; }
|
|
410
|
-
/** @internal */
|
|
411
399
|
constructor(props, iModel) {
|
|
412
400
|
super(props, iModel);
|
|
413
401
|
this.placement = core_common_1.Placement2d.fromJSON(props.placement);
|
|
414
402
|
if (props.typeDefinition)
|
|
415
403
|
this.typeDefinition = core_common_1.TypeDefinition.fromJSON(props.typeDefinition);
|
|
416
404
|
}
|
|
417
|
-
/** @internal */
|
|
418
405
|
toJSON() {
|
|
419
406
|
const val = super.toJSON();
|
|
420
407
|
val.placement = this.placement;
|
|
@@ -435,7 +422,6 @@ exports.GeometricElement2d = GeometricElement2d;
|
|
|
435
422
|
class GraphicalElement2d extends GeometricElement2d {
|
|
436
423
|
/** @internal */
|
|
437
424
|
static get className() { return "GraphicalElement2d"; }
|
|
438
|
-
/** @internal */
|
|
439
425
|
constructor(props, iModel) { super(props, iModel); }
|
|
440
426
|
}
|
|
441
427
|
exports.GraphicalElement2d = GraphicalElement2d;
|
|
@@ -445,7 +431,6 @@ exports.GraphicalElement2d = GraphicalElement2d;
|
|
|
445
431
|
class AnnotationElement2d extends GraphicalElement2d {
|
|
446
432
|
/** @internal */
|
|
447
433
|
static get className() { return "AnnotationElement2d"; }
|
|
448
|
-
/** @internal */
|
|
449
434
|
constructor(props, iModel) { super(props, iModel); }
|
|
450
435
|
}
|
|
451
436
|
exports.AnnotationElement2d = AnnotationElement2d;
|
|
@@ -455,7 +440,6 @@ exports.AnnotationElement2d = AnnotationElement2d;
|
|
|
455
440
|
class DrawingGraphic extends GraphicalElement2d {
|
|
456
441
|
/** @internal */
|
|
457
442
|
static get className() { return "DrawingGraphic"; }
|
|
458
|
-
/** @internal */
|
|
459
443
|
constructor(props, iModel) { super(props, iModel); }
|
|
460
444
|
}
|
|
461
445
|
exports.DrawingGraphic = DrawingGraphic;
|
|
@@ -465,7 +449,6 @@ exports.DrawingGraphic = DrawingGraphic;
|
|
|
465
449
|
class TextAnnotation2d extends AnnotationElement2d {
|
|
466
450
|
/** @internal */
|
|
467
451
|
static get className() { return "TextAnnotation2d"; }
|
|
468
|
-
/** @internal */
|
|
469
452
|
constructor(props, iModel) { super(props, iModel); }
|
|
470
453
|
}
|
|
471
454
|
exports.TextAnnotation2d = TextAnnotation2d;
|
|
@@ -475,7 +458,6 @@ exports.TextAnnotation2d = TextAnnotation2d;
|
|
|
475
458
|
class TextAnnotation3d extends GraphicalElement3d {
|
|
476
459
|
/** @internal */
|
|
477
460
|
static get className() { return "TextAnnotation3d"; }
|
|
478
|
-
/** @internal */
|
|
479
461
|
constructor(props, iModel) { super(props, iModel); }
|
|
480
462
|
}
|
|
481
463
|
exports.TextAnnotation3d = TextAnnotation3d;
|
|
@@ -485,7 +467,6 @@ exports.TextAnnotation3d = TextAnnotation3d;
|
|
|
485
467
|
class SpatialElement extends GeometricElement3d {
|
|
486
468
|
/** @internal */
|
|
487
469
|
static get className() { return "SpatialElement"; }
|
|
488
|
-
/** @internal */
|
|
489
470
|
constructor(props, iModel) { super(props, iModel); }
|
|
490
471
|
}
|
|
491
472
|
exports.SpatialElement = SpatialElement;
|
|
@@ -495,12 +476,10 @@ exports.SpatialElement = SpatialElement;
|
|
|
495
476
|
class PhysicalElement extends SpatialElement {
|
|
496
477
|
/** @internal */
|
|
497
478
|
static get className() { return "PhysicalElement"; }
|
|
498
|
-
/** @internal */
|
|
499
479
|
constructor(props, iModel) {
|
|
500
480
|
super(props, iModel);
|
|
501
481
|
this.physicalMaterial = core_common_1.RelatedElement.fromJSON(props.physicalMaterial);
|
|
502
482
|
}
|
|
503
|
-
/** @internal */
|
|
504
483
|
toJSON() {
|
|
505
484
|
const val = super.toJSON();
|
|
506
485
|
val.physicalMaterial = this.physicalMaterial?.toJSON();
|
|
@@ -514,7 +493,6 @@ exports.PhysicalElement = PhysicalElement;
|
|
|
514
493
|
class SpatialLocationElement extends SpatialElement {
|
|
515
494
|
/** @internal */
|
|
516
495
|
static get className() { return "SpatialLocationElement"; }
|
|
517
|
-
/** @internal */
|
|
518
496
|
constructor(props, iModel) { super(props, iModel); }
|
|
519
497
|
}
|
|
520
498
|
exports.SpatialLocationElement = SpatialLocationElement;
|
|
@@ -524,7 +502,6 @@ exports.SpatialLocationElement = SpatialLocationElement;
|
|
|
524
502
|
class VolumeElement extends SpatialLocationElement {
|
|
525
503
|
/** @internal */
|
|
526
504
|
static get className() { return "VolumeElement"; }
|
|
527
|
-
/** @internal */
|
|
528
505
|
constructor(props, iModel) { super(props, iModel); }
|
|
529
506
|
}
|
|
530
507
|
exports.VolumeElement = VolumeElement;
|
|
@@ -540,7 +517,6 @@ class SectionDrawingLocation extends SpatialLocationElement {
|
|
|
540
517
|
super(props, iModel);
|
|
541
518
|
this.sectionView = core_common_1.RelatedElement.fromJSON(props.sectionView) ?? core_common_1.RelatedElement.none;
|
|
542
519
|
}
|
|
543
|
-
/** @internal */
|
|
544
520
|
toJSON() {
|
|
545
521
|
return {
|
|
546
522
|
...super.toJSON(),
|
|
@@ -557,7 +533,6 @@ exports.SectionDrawingLocation = SectionDrawingLocation;
|
|
|
557
533
|
class InformationContentElement extends Element {
|
|
558
534
|
/** @internal */
|
|
559
535
|
static get className() { return "InformationContentElement"; }
|
|
560
|
-
/** @internal */
|
|
561
536
|
constructor(props, iModel) { super(props, iModel); }
|
|
562
537
|
}
|
|
563
538
|
exports.InformationContentElement = InformationContentElement;
|
|
@@ -568,7 +543,6 @@ exports.InformationContentElement = InformationContentElement;
|
|
|
568
543
|
class DriverBundleElement extends InformationContentElement {
|
|
569
544
|
/** @internal */
|
|
570
545
|
static get className() { return "DriverBundleElement"; }
|
|
571
|
-
/** @internal */
|
|
572
546
|
constructor(props, iModel) { super(props, iModel); }
|
|
573
547
|
}
|
|
574
548
|
exports.DriverBundleElement = DriverBundleElement;
|
|
@@ -578,7 +552,6 @@ exports.DriverBundleElement = DriverBundleElement;
|
|
|
578
552
|
class InformationReferenceElement extends InformationContentElement {
|
|
579
553
|
/** @internal */
|
|
580
554
|
static get className() { return "InformationReferenceElement"; }
|
|
581
|
-
/** @internal */
|
|
582
555
|
constructor(props, iModel) { super(props, iModel); }
|
|
583
556
|
}
|
|
584
557
|
exports.InformationReferenceElement = InformationReferenceElement;
|
|
@@ -589,9 +562,7 @@ exports.InformationReferenceElement = InformationReferenceElement;
|
|
|
589
562
|
class Subject extends InformationReferenceElement {
|
|
590
563
|
/** @internal */
|
|
591
564
|
static get className() { return "Subject"; }
|
|
592
|
-
/** @internal */
|
|
593
565
|
constructor(props, iModel) { super(props, iModel); }
|
|
594
|
-
/** @internal */
|
|
595
566
|
toJSON() {
|
|
596
567
|
return super.toJSON(); // Entity.toJSON takes care of auto-handled properties
|
|
597
568
|
}
|
|
@@ -646,7 +617,6 @@ exports.Subject = Subject;
|
|
|
646
617
|
class Document extends InformationContentElement {
|
|
647
618
|
/** @internal */
|
|
648
619
|
static get className() { return "Document"; }
|
|
649
|
-
/** @internal */
|
|
650
620
|
constructor(props, iModel) { super(props, iModel); }
|
|
651
621
|
}
|
|
652
622
|
exports.Document = Document;
|
|
@@ -656,7 +626,6 @@ exports.Document = Document;
|
|
|
656
626
|
class Drawing extends Document {
|
|
657
627
|
/** @internal */
|
|
658
628
|
static get className() { return "Drawing"; }
|
|
659
|
-
/** @internal */
|
|
660
629
|
constructor(props, iModel) { super(props, iModel); }
|
|
661
630
|
/** Create a Code for a Drawing given a name that is meant to be unique within the scope of the specified DocumentListModel.
|
|
662
631
|
* @param iModel The IModelDb
|
|
@@ -697,7 +666,6 @@ exports.Drawing = Drawing;
|
|
|
697
666
|
class SectionDrawing extends Drawing {
|
|
698
667
|
/** @internal */
|
|
699
668
|
static get className() { return "SectionDrawing"; }
|
|
700
|
-
/** @internal */
|
|
701
669
|
constructor(props, iModel) {
|
|
702
670
|
super(props, iModel);
|
|
703
671
|
this.sectionType = core_bentley_1.JsonUtils.asInt(props.sectionType, core_common_1.SectionType.Section);
|
|
@@ -713,7 +681,6 @@ class SectionDrawing extends Drawing {
|
|
|
713
681
|
if (json.drawingBoundaryClip)
|
|
714
682
|
this.drawingBoundaryClip = core_geometry_1.ClipVector.fromJSON(json.drawingBoundaryClip);
|
|
715
683
|
}
|
|
716
|
-
/** Convert to JSON representation. */
|
|
717
684
|
toJSON() {
|
|
718
685
|
const props = {
|
|
719
686
|
...super.toJSON(),
|
|
@@ -736,7 +703,6 @@ exports.SectionDrawing = SectionDrawing;
|
|
|
736
703
|
class SheetBorderTemplate extends Document {
|
|
737
704
|
/** @internal */
|
|
738
705
|
static get className() { return "SheetBorderTemplate"; }
|
|
739
|
-
/** @internal */
|
|
740
706
|
constructor(props, iModel) { super(props, iModel); }
|
|
741
707
|
}
|
|
742
708
|
exports.SheetBorderTemplate = SheetBorderTemplate;
|
|
@@ -746,7 +712,6 @@ exports.SheetBorderTemplate = SheetBorderTemplate;
|
|
|
746
712
|
class SheetTemplate extends Document {
|
|
747
713
|
/** @internal */
|
|
748
714
|
static get className() { return "SheetTemplate"; }
|
|
749
|
-
/** @internal */
|
|
750
715
|
constructor(props, iModel) { super(props, iModel); }
|
|
751
716
|
collectReferenceIds(referenceIds) {
|
|
752
717
|
super.collectReferenceIds(referenceIds);
|
|
@@ -761,7 +726,6 @@ exports.SheetTemplate = SheetTemplate;
|
|
|
761
726
|
class Sheet extends Document {
|
|
762
727
|
/** @internal */
|
|
763
728
|
static get className() { return "Sheet"; }
|
|
764
|
-
/** @internal */
|
|
765
729
|
constructor(props, iModel) {
|
|
766
730
|
super(props, iModel);
|
|
767
731
|
this.height = core_bentley_1.JsonUtils.asDouble(props.height);
|
|
@@ -792,7 +756,6 @@ exports.Sheet = Sheet;
|
|
|
792
756
|
class InformationRecordElement extends InformationContentElement {
|
|
793
757
|
/** @internal */
|
|
794
758
|
static get className() { return "InformationRecordElement"; }
|
|
795
|
-
/** @internal */
|
|
796
759
|
constructor(props, iModel) { super(props, iModel); }
|
|
797
760
|
}
|
|
798
761
|
exports.InformationRecordElement = InformationRecordElement;
|
|
@@ -802,12 +765,10 @@ exports.InformationRecordElement = InformationRecordElement;
|
|
|
802
765
|
class DefinitionElement extends InformationContentElement {
|
|
803
766
|
/** @internal */
|
|
804
767
|
static get className() { return "DefinitionElement"; }
|
|
805
|
-
/** @internal */
|
|
806
768
|
constructor(props, iModel) {
|
|
807
769
|
super(props, iModel);
|
|
808
770
|
this.isPrivate = true === props.isPrivate;
|
|
809
771
|
}
|
|
810
|
-
/** @internal */
|
|
811
772
|
toJSON() {
|
|
812
773
|
const val = super.toJSON();
|
|
813
774
|
val.isPrivate = this.isPrivate;
|
|
@@ -904,7 +865,6 @@ exports.DefinitionGroup = DefinitionGroup;
|
|
|
904
865
|
class TypeDefinitionElement extends DefinitionElement {
|
|
905
866
|
/** @internal */
|
|
906
867
|
static get className() { return "TypeDefinitionElement"; }
|
|
907
|
-
/** @internal */
|
|
908
868
|
constructor(props, iModel) { super(props, iModel); }
|
|
909
869
|
collectReferenceIds(referenceIds) {
|
|
910
870
|
super.collectReferenceIds(referenceIds);
|
|
@@ -919,7 +879,6 @@ exports.TypeDefinitionElement = TypeDefinitionElement;
|
|
|
919
879
|
class RecipeDefinitionElement extends DefinitionElement {
|
|
920
880
|
/** @internal */
|
|
921
881
|
static get className() { return "RecipeDefinitionElement"; }
|
|
922
|
-
/** @internal */
|
|
923
882
|
constructor(props, iModel) { super(props, iModel); }
|
|
924
883
|
}
|
|
925
884
|
exports.RecipeDefinitionElement = RecipeDefinitionElement;
|
|
@@ -931,12 +890,10 @@ exports.RecipeDefinitionElement = RecipeDefinitionElement;
|
|
|
931
890
|
class PhysicalType extends TypeDefinitionElement {
|
|
932
891
|
/** @internal */
|
|
933
892
|
static get className() { return "PhysicalType"; }
|
|
934
|
-
/** @internal */
|
|
935
893
|
constructor(props, iModel) {
|
|
936
894
|
super(props, iModel);
|
|
937
895
|
this.physicalMaterial = core_common_1.RelatedElement.fromJSON(props.physicalMaterial);
|
|
938
896
|
}
|
|
939
|
-
/** @internal */
|
|
940
897
|
toJSON() {
|
|
941
898
|
const val = super.toJSON();
|
|
942
899
|
val.physicalMaterial = this.physicalMaterial?.toJSON();
|
|
@@ -959,7 +916,6 @@ exports.PhysicalType = PhysicalType;
|
|
|
959
916
|
class SpatialLocationType extends TypeDefinitionElement {
|
|
960
917
|
/** @internal */
|
|
961
918
|
static get className() { return "SpatialLocationType"; }
|
|
962
|
-
/** @internal */
|
|
963
919
|
constructor(props, iModel) { super(props, iModel); }
|
|
964
920
|
/** Create a Code for a SpatialLocationType element given a name that is meant to be unique within the scope of the specified DefinitionModel.
|
|
965
921
|
* @param iModel The IModelDb
|
|
@@ -978,7 +934,6 @@ exports.SpatialLocationType = SpatialLocationType;
|
|
|
978
934
|
class TemplateRecipe3d extends RecipeDefinitionElement {
|
|
979
935
|
/** @internal */
|
|
980
936
|
static get className() { return "TemplateRecipe3d"; }
|
|
981
|
-
/** @internal */
|
|
982
937
|
constructor(props, iModel) { super(props, iModel); }
|
|
983
938
|
/** Create a Code for a TemplateRecipe3d given a name that is meant to be unique within the scope of its Model.
|
|
984
939
|
* @param iModelDb The IModelDb
|
|
@@ -1030,7 +985,6 @@ exports.TemplateRecipe3d = TemplateRecipe3d;
|
|
|
1030
985
|
class GraphicalType2d extends TypeDefinitionElement {
|
|
1031
986
|
/** @internal */
|
|
1032
987
|
static get className() { return "GraphicalType2d"; }
|
|
1033
|
-
/** @internal */
|
|
1034
988
|
constructor(props, iModel) { super(props, iModel); }
|
|
1035
989
|
/** Create a Code for a GraphicalType2d element given a name that is meant to be unique within the scope of the specified DefinitionModel.
|
|
1036
990
|
* @param iModel The IModelDb
|
|
@@ -1049,7 +1003,6 @@ exports.GraphicalType2d = GraphicalType2d;
|
|
|
1049
1003
|
class TemplateRecipe2d extends RecipeDefinitionElement {
|
|
1050
1004
|
/** @internal */
|
|
1051
1005
|
static get className() { return "TemplateRecipe2d"; }
|
|
1052
|
-
/** @internal */
|
|
1053
1006
|
constructor(props, iModel) { super(props, iModel); }
|
|
1054
1007
|
/** Create a Code for a TemplateRecipe2d given a name that is meant to be unique within the scope of its Model.
|
|
1055
1008
|
* @param iModelDb The IModelDb
|
|
@@ -1103,9 +1056,7 @@ exports.TemplateRecipe2d = TemplateRecipe2d;
|
|
|
1103
1056
|
class InformationPartitionElement extends InformationContentElement {
|
|
1104
1057
|
/** @internal */
|
|
1105
1058
|
static get className() { return "InformationPartitionElement"; }
|
|
1106
|
-
/** @internal */
|
|
1107
1059
|
constructor(props, iModel) { super(props, iModel); }
|
|
1108
|
-
/** @internal */
|
|
1109
1060
|
toJSON() {
|
|
1110
1061
|
return super.toJSON(); // Entity.toJSON takes care of auto-handled properties
|
|
1111
1062
|
}
|
|
@@ -1230,13 +1181,11 @@ exports.LinkElement = LinkElement;
|
|
|
1230
1181
|
class UrlLink extends LinkElement {
|
|
1231
1182
|
/** @internal */
|
|
1232
1183
|
static get className() { return "UrlLink"; }
|
|
1233
|
-
/** @internal */
|
|
1234
1184
|
constructor(props, iModel) {
|
|
1235
1185
|
super(props, iModel);
|
|
1236
1186
|
this.description = props.description;
|
|
1237
1187
|
this.url = props.url;
|
|
1238
1188
|
}
|
|
1239
|
-
/** @internal */
|
|
1240
1189
|
toJSON() {
|
|
1241
1190
|
const val = super.toJSON();
|
|
1242
1191
|
val.description = this.description;
|
|
@@ -1260,13 +1209,11 @@ exports.FolderLink = FolderLink;
|
|
|
1260
1209
|
class RepositoryLink extends UrlLink {
|
|
1261
1210
|
/** @internal */
|
|
1262
1211
|
static get className() { return "RepositoryLink"; }
|
|
1263
|
-
/** @internal */
|
|
1264
1212
|
constructor(props, iModel) {
|
|
1265
1213
|
super(props, iModel);
|
|
1266
1214
|
this.repositoryGuid = props.repositoryGuid;
|
|
1267
1215
|
this.format = props.format;
|
|
1268
1216
|
}
|
|
1269
|
-
/** @internal */
|
|
1270
1217
|
toJSON() {
|
|
1271
1218
|
const val = super.toJSON();
|
|
1272
1219
|
val.repositoryGuid = this.repositoryGuid;
|
|
@@ -1300,13 +1247,11 @@ exports.RoleElement = RoleElement;
|
|
|
1300
1247
|
class GeometryPart extends DefinitionElement {
|
|
1301
1248
|
/** @internal */
|
|
1302
1249
|
static get className() { return "GeometryPart"; }
|
|
1303
|
-
/** @internal */
|
|
1304
1250
|
constructor(props, iModel) {
|
|
1305
1251
|
super(props, iModel);
|
|
1306
1252
|
this.geom = props.geom;
|
|
1307
1253
|
this.bbox = core_geometry_1.Range3d.fromJSON(props.bbox);
|
|
1308
1254
|
}
|
|
1309
|
-
/** @internal */
|
|
1310
1255
|
toJSON() {
|
|
1311
1256
|
const val = super.toJSON();
|
|
1312
1257
|
val.geom = this.geom;
|
|
@@ -1331,7 +1276,6 @@ exports.GeometryPart = GeometryPart;
|
|
|
1331
1276
|
class LineStyle extends DefinitionElement {
|
|
1332
1277
|
/** @internal */
|
|
1333
1278
|
static get className() { return "LineStyle"; }
|
|
1334
|
-
/** @internal */
|
|
1335
1279
|
constructor(props, iModel) { super(props, iModel); }
|
|
1336
1280
|
/** Create a Code for a LineStyle definition given a name that is meant to be unique within the scope of the specified model.
|
|
1337
1281
|
* @param iModel The IModel
|
|
@@ -1351,7 +1295,6 @@ exports.LineStyle = LineStyle;
|
|
|
1351
1295
|
class RenderTimeline extends InformationRecordElement {
|
|
1352
1296
|
/** @internal */
|
|
1353
1297
|
static get className() { return "RenderTimeline"; }
|
|
1354
|
-
/** @internal */
|
|
1355
1298
|
constructor(props, iModel) {
|
|
1356
1299
|
super(props, iModel);
|
|
1357
1300
|
this.description = props.description ?? "";
|