@itwin/core-backend 5.0.0-dev.9 → 5.0.0-dev.92
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 +60 -1
- package/lib/cjs/BackendHubAccess.d.ts +14 -28
- package/lib/cjs/BackendHubAccess.d.ts.map +1 -1
- package/lib/cjs/BackendHubAccess.js +2 -0
- package/lib/cjs/BackendHubAccess.js.map +1 -1
- package/lib/cjs/BackendLoggerCategory.js.map +1 -1
- package/lib/cjs/BisCoreSchema.d.ts.map +1 -1
- package/lib/cjs/BisCoreSchema.js +2 -0
- package/lib/cjs/BisCoreSchema.js.map +1 -1
- package/lib/cjs/BlobContainerService.d.ts +4 -4
- package/lib/cjs/BlobContainerService.d.ts.map +1 -1
- package/lib/cjs/BlobContainerService.js.map +1 -1
- package/lib/cjs/BriefcaseManager.d.ts +10 -0
- package/lib/cjs/BriefcaseManager.d.ts.map +1 -1
- package/lib/cjs/BriefcaseManager.js +63 -20
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/Category.js +6 -1
- package/lib/cjs/Category.js.map +1 -1
- package/lib/cjs/ChangeSummaryManager.d.ts.map +1 -1
- package/lib/cjs/ChangeSummaryManager.js +92 -24
- package/lib/cjs/ChangeSummaryManager.js.map +1 -1
- package/lib/cjs/ChangedElementsDb.d.ts +3 -3
- package/lib/cjs/ChangedElementsDb.d.ts.map +1 -1
- package/lib/cjs/ChangedElementsDb.js +8 -7
- package/lib/cjs/ChangedElementsDb.js.map +1 -1
- package/lib/cjs/ChangesetECAdaptor.d.ts +3 -3
- package/lib/cjs/ChangesetECAdaptor.d.ts.map +1 -1
- package/lib/cjs/ChangesetECAdaptor.js +273 -261
- package/lib/cjs/ChangesetECAdaptor.js.map +1 -1
- package/lib/cjs/ChannelControl.js.map +1 -1
- package/lib/cjs/CheckpointManager.d.ts.map +1 -1
- package/lib/cjs/CheckpointManager.js +15 -12
- package/lib/cjs/CheckpointManager.js.map +1 -1
- package/lib/cjs/ClassRegistry.d.ts +46 -2
- package/lib/cjs/ClassRegistry.d.ts.map +1 -1
- package/lib/cjs/ClassRegistry.js +98 -42
- package/lib/cjs/ClassRegistry.js.map +1 -1
- package/lib/cjs/CloudSqlite.d.ts +2 -1
- package/lib/cjs/CloudSqlite.d.ts.map +1 -1
- package/lib/cjs/CloudSqlite.js +15 -8
- package/lib/cjs/CloudSqlite.js.map +1 -1
- package/lib/cjs/CodeService.d.ts +2 -0
- package/lib/cjs/CodeService.d.ts.map +1 -1
- package/lib/cjs/CodeService.js +4 -0
- package/lib/cjs/CodeService.js.map +1 -1
- package/lib/cjs/CodeSpecs.js +3 -2
- package/lib/cjs/CodeSpecs.js.map +1 -1
- package/lib/cjs/ConcurrentQuery.js.map +1 -1
- package/lib/cjs/CustomViewState3dCreator.js +7 -6
- package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
- package/lib/cjs/DevTools.js +16 -16
- package/lib/cjs/DevTools.js.map +1 -1
- package/lib/cjs/DisplayStyle.js +2 -0
- package/lib/cjs/DisplayStyle.js.map +1 -1
- package/lib/cjs/ECDb.d.ts +16 -59
- package/lib/cjs/ECDb.d.ts.map +1 -1
- package/lib/cjs/ECDb.js +34 -73
- package/lib/cjs/ECDb.js.map +1 -1
- package/lib/cjs/ECSchemaXmlContext.js +1 -0
- package/lib/cjs/ECSchemaXmlContext.js.map +1 -1
- package/lib/cjs/ECSqlStatement.d.ts +4 -2
- package/lib/cjs/ECSqlStatement.d.ts.map +1 -1
- package/lib/cjs/ECSqlStatement.js +13 -4
- package/lib/cjs/ECSqlStatement.js.map +1 -1
- package/lib/cjs/Element.d.ts +14 -23
- package/lib/cjs/Element.d.ts.map +1 -1
- package/lib/cjs/Element.js +133 -46
- package/lib/cjs/Element.js.map +1 -1
- package/lib/cjs/ElementAspect.d.ts +0 -5
- package/lib/cjs/ElementAspect.d.ts.map +1 -1
- package/lib/cjs/ElementAspect.js +24 -16
- package/lib/cjs/ElementAspect.js.map +1 -1
- package/lib/cjs/ElementGraphics.js.map +1 -1
- package/lib/cjs/ElementTreeWalker.js +13 -12
- package/lib/cjs/ElementTreeWalker.js.map +1 -1
- package/lib/cjs/Entity.d.ts +46 -10
- package/lib/cjs/Entity.d.ts.map +1 -1
- package/lib/cjs/Entity.js +79 -16
- package/lib/cjs/Entity.js.map +1 -1
- package/lib/cjs/EntityReferences.js.map +1 -1
- package/lib/cjs/ExportGraphics.js +4 -0
- package/lib/cjs/ExportGraphics.js.map +1 -1
- package/lib/cjs/ExternalSource.js +22 -0
- package/lib/cjs/ExternalSource.js.map +1 -1
- package/lib/cjs/FontFile.d.ts +68 -0
- package/lib/cjs/FontFile.d.ts.map +1 -0
- package/lib/cjs/FontFile.js +36 -0
- package/lib/cjs/FontFile.js.map +1 -0
- package/lib/cjs/GeoCoordConfig.js +8 -8
- package/lib/cjs/GeoCoordConfig.js.map +1 -1
- package/lib/cjs/GeographicCRSServices.js.map +1 -1
- package/lib/cjs/GeometrySummary.js +53 -50
- package/lib/cjs/GeometrySummary.js.map +1 -1
- package/lib/cjs/HubMock.d.ts +4 -4
- package/lib/cjs/HubMock.d.ts.map +1 -1
- package/lib/cjs/HubMock.js +9 -6
- package/lib/cjs/HubMock.js.map +1 -1
- package/lib/cjs/IModelDb.d.ts +203 -72
- package/lib/cjs/IModelDb.d.ts.map +1 -1
- package/lib/cjs/IModelDb.js +338 -168
- package/lib/cjs/IModelDb.js.map +1 -1
- package/lib/cjs/IModelDbFonts.d.ts +54 -0
- package/lib/cjs/IModelDbFonts.d.ts.map +1 -0
- package/lib/cjs/{IModelCloneContext.js → IModelDbFonts.js} +2 -7
- package/lib/cjs/IModelDbFonts.js.map +1 -0
- package/lib/cjs/IModelElementCloneContext.d.ts +2 -0
- package/lib/cjs/IModelElementCloneContext.d.ts.map +1 -1
- package/lib/cjs/IModelElementCloneContext.js +12 -1
- package/lib/cjs/IModelElementCloneContext.js.map +1 -1
- package/lib/cjs/IModelHost.d.ts +14 -14
- package/lib/cjs/IModelHost.d.ts.map +1 -1
- package/lib/cjs/IModelHost.js +75 -42
- package/lib/cjs/IModelHost.js.map +1 -1
- package/lib/cjs/IModelJsFs.d.ts.map +1 -1
- package/lib/cjs/IModelJsFs.js +17 -1
- package/lib/cjs/IModelJsFs.js.map +1 -1
- package/lib/cjs/ImageSourceConversion.d.ts +49 -0
- package/lib/cjs/ImageSourceConversion.d.ts.map +1 -0
- package/lib/cjs/ImageSourceConversion.js +37 -0
- package/lib/cjs/ImageSourceConversion.js.map +1 -0
- package/lib/cjs/IpcHost.d.ts.map +1 -1
- package/lib/cjs/IpcHost.js +17 -12
- package/lib/cjs/IpcHost.js.map +1 -1
- package/lib/cjs/LineStyle.js.map +1 -1
- package/lib/cjs/LocalHub.js +9 -3
- package/lib/cjs/LocalHub.js.map +1 -1
- package/lib/cjs/LocalhostIpcHost.js +5 -6
- package/lib/cjs/LocalhostIpcHost.js.map +1 -1
- package/lib/cjs/LockControl.js.map +1 -1
- package/lib/cjs/Material.js +40 -0
- package/lib/cjs/Material.js.map +1 -1
- package/lib/cjs/Model.d.ts +1 -1
- package/lib/cjs/Model.d.ts.map +1 -1
- package/lib/cjs/Model.js +27 -2
- package/lib/cjs/Model.js.map +1 -1
- package/lib/cjs/NativeAppStorage.js +5 -3
- package/lib/cjs/NativeAppStorage.js.map +1 -1
- package/lib/cjs/NativeHost.js +6 -3
- package/lib/cjs/NativeHost.js.map +1 -1
- package/lib/cjs/NavigationRelationship.js +25 -25
- package/lib/cjs/NavigationRelationship.js.map +1 -1
- package/lib/cjs/PromiseMemoizer.d.ts +2 -3
- package/lib/cjs/PromiseMemoizer.d.ts.map +1 -1
- package/lib/cjs/PromiseMemoizer.js +12 -5
- package/lib/cjs/PromiseMemoizer.js.map +1 -1
- package/lib/cjs/PropertyStore.js +1 -4
- package/lib/cjs/PropertyStore.js.map +1 -1
- package/lib/cjs/Relationship.d.ts.map +1 -1
- package/lib/cjs/Relationship.js +13 -1
- package/lib/cjs/Relationship.js.map +1 -1
- package/lib/cjs/RpcBackend.js.map +1 -1
- package/lib/cjs/SQLiteDb.d.ts +6 -4
- package/lib/cjs/SQLiteDb.d.ts.map +1 -1
- package/lib/cjs/SQLiteDb.js +74 -15
- package/lib/cjs/SQLiteDb.js.map +1 -1
- package/lib/cjs/Schema.d.ts +25 -1
- package/lib/cjs/Schema.d.ts.map +1 -1
- package/lib/cjs/Schema.js +44 -8
- package/lib/cjs/Schema.js.map +1 -1
- package/lib/cjs/SchemaSync.js +1 -4
- package/lib/cjs/SchemaSync.js.map +1 -1
- package/lib/cjs/SchemaUtils.js.map +1 -1
- package/lib/cjs/SheetIndex.js +6 -0
- package/lib/cjs/SheetIndex.js.map +1 -1
- package/lib/cjs/SqliteChangesetReader.d.ts +11 -3
- package/lib/cjs/SqliteChangesetReader.d.ts.map +1 -1
- package/lib/cjs/SqliteChangesetReader.js +21 -5
- package/lib/cjs/SqliteChangesetReader.js.map +1 -1
- package/lib/cjs/SqliteStatement.d.ts +4 -2
- package/lib/cjs/SqliteStatement.d.ts.map +1 -1
- package/lib/cjs/SqliteStatement.js +13 -1
- package/lib/cjs/SqliteStatement.js.map +1 -1
- package/lib/cjs/TextAnnotationElement.js.map +1 -1
- package/lib/cjs/TextAnnotationGeometry.d.ts.map +1 -1
- package/lib/cjs/TextAnnotationGeometry.js +38 -11
- package/lib/cjs/TextAnnotationGeometry.js.map +1 -1
- package/lib/cjs/TextAnnotationLayout.d.ts +10 -3
- package/lib/cjs/TextAnnotationLayout.d.ts.map +1 -1
- package/lib/cjs/TextAnnotationLayout.js +56 -18
- package/lib/cjs/TextAnnotationLayout.js.map +1 -1
- package/lib/cjs/Texture.js +3 -0
- package/lib/cjs/Texture.js.map +1 -1
- package/lib/cjs/TileStorage.js +6 -1
- package/lib/cjs/TileStorage.js.map +1 -1
- package/lib/cjs/TxnManager.d.ts +55 -4
- package/lib/cjs/TxnManager.d.ts.map +1 -1
- package/lib/cjs/TxnManager.js +234 -58
- package/lib/cjs/TxnManager.js.map +1 -1
- package/lib/cjs/ViewDefinition.d.ts +6 -6
- package/lib/cjs/ViewDefinition.d.ts.map +1 -1
- package/lib/cjs/ViewDefinition.js +81 -26
- package/lib/cjs/ViewDefinition.js.map +1 -1
- package/lib/cjs/ViewStateHydrator.d.ts +0 -1
- package/lib/cjs/ViewStateHydrator.d.ts.map +1 -1
- package/lib/cjs/ViewStateHydrator.js +1 -11
- package/lib/cjs/ViewStateHydrator.js.map +1 -1
- package/lib/cjs/ViewStore.js +3 -1
- package/lib/cjs/ViewStore.js.map +1 -1
- package/lib/cjs/assets/IModelChange.02.00.00.ecschema.xml +90 -90
- package/lib/cjs/assets/Settings/Schemas/Base.Schema.json +32 -32
- package/lib/cjs/assets/Settings/Schemas/Gcs.schema.json +27 -27
- package/lib/cjs/assets/Settings/Schemas/Workspace.Schema.json +94 -94
- package/lib/cjs/assets/Settings/backend.setting.json5 +21 -21
- package/lib/cjs/core-backend.d.ts +7 -1
- package/lib/cjs/core-backend.d.ts.map +1 -1
- package/lib/cjs/core-backend.js +7 -1
- package/lib/cjs/core-backend.js.map +1 -1
- package/lib/cjs/domains/FunctionalElements.js +1 -1
- 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/internal/ChangesetConflictArgs.d.ts +40 -2
- package/lib/cjs/internal/ChangesetConflictArgs.d.ts.map +1 -1
- package/lib/cjs/internal/ChangesetConflictArgs.js +101 -0
- package/lib/cjs/internal/ChangesetConflictArgs.js.map +1 -1
- package/lib/cjs/internal/ChannelAdmin.d.ts +1 -1
- package/lib/cjs/internal/ChannelAdmin.d.ts.map +1 -1
- package/lib/cjs/internal/ChannelAdmin.js +25 -16
- package/lib/cjs/internal/ChannelAdmin.js.map +1 -1
- package/lib/cjs/internal/FontFileImpl.d.ts +34 -0
- package/lib/cjs/internal/FontFileImpl.d.ts.map +1 -0
- package/lib/cjs/internal/FontFileImpl.js +143 -0
- package/lib/cjs/internal/FontFileImpl.js.map +1 -0
- package/lib/cjs/internal/IModelDbFontsImpl.d.ts +7 -0
- package/lib/cjs/internal/IModelDbFontsImpl.d.ts.map +1 -0
- package/lib/cjs/internal/IModelDbFontsImpl.js +186 -0
- package/lib/cjs/internal/IModelDbFontsImpl.js.map +1 -0
- package/lib/cjs/internal/NativePlatform.js.map +1 -1
- package/lib/cjs/internal/NoLocks.js +2 -5
- package/lib/cjs/internal/NoLocks.js.map +1 -1
- package/lib/cjs/internal/ServerBasedLocks.d.ts.map +1 -1
- package/lib/cjs/internal/ServerBasedLocks.js +6 -6
- package/lib/cjs/internal/ServerBasedLocks.js.map +1 -1
- package/lib/cjs/internal/Symbols.d.ts +7 -0
- package/lib/cjs/internal/Symbols.d.ts.map +1 -1
- package/lib/cjs/internal/Symbols.js +8 -1
- package/lib/cjs/internal/Symbols.js.map +1 -1
- package/lib/cjs/internal/cross-package.js.map +1 -1
- package/lib/cjs/internal/workspace/SettingsImpl.js +6 -9
- package/lib/cjs/internal/workspace/SettingsImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/SettingsSchemasImpl.js +8 -12
- package/lib/cjs/internal/workspace/SettingsSchemasImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceImpl.js +22 -17
- package/lib/cjs/internal/workspace/WorkspaceImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceSqliteDb.js +1 -4
- package/lib/cjs/internal/workspace/WorkspaceSqliteDb.js.map +1 -1
- package/lib/cjs/rpc/multipart.d.ts.map +1 -1
- package/lib/cjs/rpc/multipart.js +2 -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.d.ts.map +1 -1
- package/lib/cjs/rpc/web/request.js +2 -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.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js +5 -2
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.js +5 -3
- 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 +4 -3
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
- package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.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.js.map +1 -1
- package/lib/cjs/workspace/WorkspaceEditor.js.map +1 -1
- package/lib/esm/BackendHubAccess.d.ts +215 -0
- package/lib/esm/BackendHubAccess.d.ts.map +1 -0
- package/lib/esm/BackendHubAccess.js +41 -0
- package/lib/esm/BackendHubAccess.js.map +1 -0
- package/lib/esm/BackendLoggerCategory.d.ts +88 -0
- package/lib/esm/BackendLoggerCategory.d.ts.map +1 -0
- package/lib/esm/BackendLoggerCategory.js +93 -0
- package/lib/esm/BackendLoggerCategory.js.map +1 -0
- package/lib/esm/BisCoreSchema.d.ts +22 -0
- package/lib/esm/BisCoreSchema.d.ts.map +1 -0
- package/lib/esm/BisCoreSchema.js +61 -0
- package/lib/esm/BisCoreSchema.js.map +1 -0
- package/lib/esm/BlobContainerService.d.ts +159 -0
- package/lib/esm/BlobContainerService.d.ts.map +1 -0
- package/lib/esm/BlobContainerService.js +15 -0
- package/lib/esm/BlobContainerService.js.map +1 -0
- package/lib/esm/BriefcaseManager.d.ts +213 -0
- package/lib/esm/BriefcaseManager.d.ts.map +1 -0
- package/lib/esm/BriefcaseManager.js +520 -0
- package/lib/esm/BriefcaseManager.js.map +1 -0
- package/lib/esm/Category.d.ts +136 -0
- package/lib/esm/Category.d.ts.map +1 -0
- package/lib/esm/Category.js +224 -0
- package/lib/esm/Category.js.map +1 -0
- package/lib/esm/ChangeSummaryManager.d.ts +161 -0
- package/lib/esm/ChangeSummaryManager.d.ts.map +1 -0
- package/lib/esm/ChangeSummaryManager.js +414 -0
- package/lib/esm/ChangeSummaryManager.js.map +1 -0
- package/lib/esm/ChangedElementsDb.d.ts +101 -0
- package/lib/esm/ChangedElementsDb.d.ts.map +1 -0
- package/lib/esm/ChangedElementsDb.js +165 -0
- package/lib/esm/ChangedElementsDb.js.map +1 -0
- package/lib/esm/ChangesetECAdaptor.d.ts +203 -0
- package/lib/esm/ChangesetECAdaptor.d.ts.map +1 -0
- package/lib/esm/ChangesetECAdaptor.js +814 -0
- package/lib/esm/ChangesetECAdaptor.js.map +1 -0
- package/lib/esm/ChannelControl.d.ts +68 -0
- package/lib/esm/ChannelControl.d.ts.map +1 -0
- package/lib/esm/ChannelControl.js +15 -0
- package/lib/esm/ChannelControl.js.map +1 -0
- package/lib/esm/CheckpointManager.d.ts +123 -0
- package/lib/esm/CheckpointManager.d.ts.map +1 -0
- package/lib/esm/CheckpointManager.js +375 -0
- package/lib/esm/CheckpointManager.js.map +1 -0
- package/lib/esm/ClassRegistry.d.ts +134 -0
- package/lib/esm/ClassRegistry.d.ts.map +1 -0
- package/lib/esm/ClassRegistry.js +324 -0
- package/lib/esm/ClassRegistry.js.map +1 -0
- package/lib/esm/CloudSqlite.d.ts +682 -0
- package/lib/esm/CloudSqlite.d.ts.map +1 -0
- package/lib/esm/CloudSqlite.js +511 -0
- package/lib/esm/CloudSqlite.js.map +1 -0
- package/lib/esm/CodeService.d.ts +402 -0
- package/lib/esm/CodeService.d.ts.map +1 -0
- package/lib/esm/CodeService.js +65 -0
- package/lib/esm/CodeService.js.map +1 -0
- package/lib/esm/CodeSpecs.d.ts +59 -0
- package/lib/esm/CodeSpecs.d.ts.map +1 -0
- package/lib/esm/CodeSpecs.js +152 -0
- package/lib/esm/CodeSpecs.js.map +1 -0
- package/lib/esm/ConcurrentQuery.d.ts +14 -0
- package/lib/esm/ConcurrentQuery.d.ts.map +1 -0
- package/lib/esm/ConcurrentQuery.js +33 -0
- package/lib/esm/ConcurrentQuery.js.map +1 -0
- package/lib/esm/CustomViewState3dCreator.d.ts +22 -0
- package/lib/esm/CustomViewState3dCreator.d.ts.map +1 -0
- package/lib/esm/CustomViewState3dCreator.js +78 -0
- package/lib/esm/CustomViewState3dCreator.js.map +1 -0
- package/lib/esm/DevTools.d.ts +73 -0
- package/lib/esm/DevTools.d.ts.map +1 -0
- package/lib/esm/DevTools.js +153 -0
- package/lib/esm/DevTools.js.map +1 -0
- package/lib/esm/DisplayStyle.d.ts +99 -0
- package/lib/esm/DisplayStyle.d.ts.map +1 -0
- package/lib/esm/DisplayStyle.js +264 -0
- package/lib/esm/DisplayStyle.js.map +1 -0
- package/lib/esm/ECDb.d.ts +170 -0
- package/lib/esm/ECDb.d.ts.map +1 -0
- package/lib/esm/ECDb.js +329 -0
- package/lib/esm/ECDb.js.map +1 -0
- package/lib/esm/ECSchemaXmlContext.d.ts +46 -0
- package/lib/esm/ECSchemaXmlContext.d.ts.map +1 -0
- package/lib/esm/ECSchemaXmlContext.js +66 -0
- package/lib/esm/ECSchemaXmlContext.js.map +1 -0
- package/lib/esm/ECSqlStatement.d.ts +492 -0
- package/lib/esm/ECSqlStatement.d.ts.map +1 -0
- package/lib/esm/ECSqlStatement.js +810 -0
- package/lib/esm/ECSqlStatement.js.map +1 -0
- package/lib/esm/Element.d.ts +987 -0
- package/lib/esm/Element.d.ts.map +1 -0
- package/lib/esm/Element.js +1337 -0
- package/lib/esm/Element.js.map +1 -0
- package/lib/esm/ElementAspect.d.ts +164 -0
- package/lib/esm/ElementAspect.d.ts.map +1 -0
- package/lib/esm/ElementAspect.js +204 -0
- package/lib/esm/ElementAspect.js.map +1 -0
- package/lib/esm/ElementGraphics.d.ts +7 -0
- package/lib/esm/ElementGraphics.d.ts.map +1 -0
- package/lib/esm/ElementGraphics.js +36 -0
- package/lib/esm/ElementGraphics.js.map +1 -0
- package/lib/esm/ElementTreeWalker.d.ts +182 -0
- package/lib/esm/ElementTreeWalker.d.ts.map +1 -0
- package/lib/esm/ElementTreeWalker.js +421 -0
- package/lib/esm/ElementTreeWalker.js.map +1 -0
- package/lib/esm/Entity.d.ts +142 -0
- package/lib/esm/Entity.d.ts.map +1 -0
- package/lib/esm/Entity.js +186 -0
- package/lib/esm/Entity.js.map +1 -0
- package/lib/esm/EntityReferences.d.ts +50 -0
- package/lib/esm/EntityReferences.d.ts.map +1 -0
- package/lib/esm/EntityReferences.js +92 -0
- package/lib/esm/EntityReferences.js.map +1 -0
- package/lib/esm/ExportGraphics.d.ts +318 -0
- package/lib/esm/ExportGraphics.d.ts.map +1 -0
- package/lib/esm/ExportGraphics.js +209 -0
- package/lib/esm/ExportGraphics.js.map +1 -0
- package/lib/esm/ExternalSource.d.ts +89 -0
- package/lib/esm/ExternalSource.d.ts.map +1 -0
- package/lib/esm/ExternalSource.js +139 -0
- package/lib/esm/ExternalSource.js.map +1 -0
- package/lib/esm/FontFile.d.ts +68 -0
- package/lib/esm/FontFile.d.ts.map +1 -0
- package/lib/esm/FontFile.js +33 -0
- package/lib/esm/FontFile.js.map +1 -0
- package/lib/esm/GeoCoordConfig.d.ts +30 -0
- package/lib/esm/GeoCoordConfig.d.ts.map +1 -0
- package/lib/esm/GeoCoordConfig.js +78 -0
- package/lib/esm/GeoCoordConfig.js.map +1 -0
- package/lib/esm/GeographicCRSServices.d.ts +40 -0
- package/lib/esm/GeographicCRSServices.d.ts.map +1 -0
- package/lib/esm/GeographicCRSServices.js +17 -0
- package/lib/esm/GeographicCRSServices.js.map +1 -0
- package/lib/esm/GeometrySummary.d.ts +5 -0
- package/lib/esm/GeometrySummary.d.ts.map +1 -0
- package/lib/esm/GeometrySummary.js +381 -0
- package/lib/esm/GeometrySummary.js.map +1 -0
- package/lib/esm/HubMock.d.ts +95 -0
- package/lib/esm/HubMock.d.ts.map +1 -0
- package/lib/esm/HubMock.js +220 -0
- package/lib/esm/HubMock.js.map +1 -0
- package/lib/esm/IModelDb.d.ts +1398 -0
- package/lib/esm/IModelDb.d.ts.map +1 -0
- package/lib/esm/IModelDb.js +3230 -0
- package/lib/esm/IModelDb.js.map +1 -0
- package/lib/esm/IModelDbFonts.d.ts +54 -0
- package/lib/esm/IModelDbFonts.d.ts.map +1 -0
- package/lib/esm/IModelDbFonts.js +9 -0
- package/lib/esm/IModelDbFonts.js.map +1 -0
- package/lib/esm/IModelElementCloneContext.d.ts +92 -0
- package/lib/esm/IModelElementCloneContext.d.ts.map +1 -0
- package/lib/esm/IModelElementCloneContext.js +168 -0
- package/lib/esm/IModelElementCloneContext.js.map +1 -0
- package/lib/esm/IModelHost.d.ts +387 -0
- package/lib/esm/IModelHost.d.ts.map +1 -0
- package/lib/esm/IModelHost.js +502 -0
- package/lib/esm/IModelHost.js.map +1 -0
- package/lib/esm/IModelJsFs.d.ts +62 -0
- package/lib/esm/IModelJsFs.d.ts.map +1 -0
- package/lib/esm/IModelJsFs.js +151 -0
- package/lib/esm/IModelJsFs.js.map +1 -0
- package/lib/esm/ImageSourceConversion.d.ts +49 -0
- package/lib/esm/ImageSourceConversion.d.ts.map +1 -0
- package/lib/esm/ImageSourceConversion.js +33 -0
- package/lib/esm/ImageSourceConversion.js.map +1 -0
- package/lib/esm/IpcHost.d.ts +111 -0
- package/lib/esm/IpcHost.d.ts.map +1 -0
- package/lib/esm/IpcHost.js +311 -0
- package/lib/esm/IpcHost.js.map +1 -0
- package/lib/esm/LineStyle.d.ts +312 -0
- package/lib/esm/LineStyle.d.ts.map +1 -0
- package/lib/esm/LineStyle.js +293 -0
- package/lib/esm/LineStyle.js.map +1 -0
- package/lib/esm/LocalHub.d.ts +163 -0
- package/lib/esm/LocalHub.d.ts.map +1 -0
- package/lib/esm/LocalHub.js +583 -0
- package/lib/esm/LocalHub.js.map +1 -0
- package/lib/esm/LocalhostIpcHost.d.ts +22 -0
- package/lib/esm/LocalhostIpcHost.d.ts.map +1 -0
- package/lib/esm/LocalhostIpcHost.js +74 -0
- package/lib/esm/LocalhostIpcHost.js.map +1 -0
- package/lib/esm/LockControl.d.ts +73 -0
- package/lib/esm/LockControl.d.ts.map +1 -0
- package/lib/esm/LockControl.js +9 -0
- package/lib/esm/LockControl.js.map +1 -0
- package/lib/esm/Material.d.ts +131 -0
- package/lib/esm/Material.d.ts.map +1 -0
- package/lib/esm/Material.js +235 -0
- package/lib/esm/Material.js.map +1 -0
- package/lib/esm/Model.d.ts +375 -0
- package/lib/esm/Model.d.ts.map +1 -0
- package/lib/esm/Model.js +484 -0
- package/lib/esm/Model.js.map +1 -0
- package/lib/esm/NativeAppStorage.d.ts +52 -0
- package/lib/esm/NativeAppStorage.d.ts.map +1 -0
- package/lib/esm/NativeAppStorage.js +205 -0
- package/lib/esm/NativeAppStorage.js.map +1 -0
- package/lib/esm/NativeHost.d.ts +53 -0
- package/lib/esm/NativeHost.d.ts.map +1 -0
- package/lib/esm/NativeHost.js +158 -0
- package/lib/esm/NativeHost.js.map +1 -0
- package/lib/esm/NavigationRelationship.d.ts +185 -0
- package/lib/esm/NavigationRelationship.d.ts.map +1 -0
- package/lib/esm/NavigationRelationship.js +238 -0
- package/lib/esm/NavigationRelationship.js.map +1 -0
- package/lib/esm/PromiseMemoizer.d.ts +48 -0
- package/lib/esm/PromiseMemoizer.d.ts.map +1 -0
- package/lib/esm/PromiseMemoizer.js +101 -0
- package/lib/esm/PromiseMemoizer.js.map +1 -0
- package/lib/esm/PropertyStore.d.ts +134 -0
- package/lib/esm/PropertyStore.d.ts.map +1 -0
- package/lib/esm/PropertyStore.js +177 -0
- package/lib/esm/PropertyStore.js.map +1 -0
- package/lib/esm/Relationship.d.ts +399 -0
- package/lib/esm/Relationship.d.ts.map +1 -0
- package/lib/esm/Relationship.js +474 -0
- package/lib/esm/Relationship.js.map +1 -0
- package/lib/esm/RpcBackend.d.ts +6 -0
- package/lib/esm/RpcBackend.d.ts.map +1 -0
- package/lib/esm/RpcBackend.js +28 -0
- package/lib/esm/RpcBackend.js.map +1 -0
- package/lib/esm/SQLiteDb.d.ts +324 -0
- package/lib/esm/SQLiteDb.d.ts.map +1 -0
- package/lib/esm/SQLiteDb.js +379 -0
- package/lib/esm/SQLiteDb.js.map +1 -0
- package/lib/esm/Schema.d.ts +79 -0
- package/lib/esm/Schema.d.ts.map +1 -0
- package/lib/esm/Schema.js +113 -0
- package/lib/esm/Schema.js.map +1 -0
- package/lib/esm/SchemaSync.d.ts +47 -0
- package/lib/esm/SchemaSync.d.ts.map +1 -0
- package/lib/esm/SchemaSync.js +148 -0
- package/lib/esm/SchemaSync.js.map +1 -0
- package/lib/esm/SchemaUtils.d.ts +19 -0
- package/lib/esm/SchemaUtils.d.ts.map +1 -0
- package/lib/esm/SchemaUtils.js +37 -0
- package/lib/esm/SchemaUtils.js.map +1 -0
- package/lib/esm/SheetIndex.d.ts +148 -0
- package/lib/esm/SheetIndex.d.ts.map +1 -0
- package/lib/esm/SheetIndex.js +228 -0
- package/lib/esm/SheetIndex.js.map +1 -0
- package/lib/esm/SqliteChangesetReader.d.ts +278 -0
- package/lib/esm/SqliteChangesetReader.d.ts.map +1 -0
- package/lib/esm/SqliteChangesetReader.js +337 -0
- package/lib/esm/SqliteChangesetReader.js.map +1 -0
- package/lib/esm/SqliteStatement.d.ts +375 -0
- package/lib/esm/SqliteStatement.d.ts.map +1 -0
- package/lib/esm/SqliteStatement.js +615 -0
- package/lib/esm/SqliteStatement.js.map +1 -0
- package/lib/esm/TextAnnotationElement.d.ts +54 -0
- package/lib/esm/TextAnnotationElement.d.ts.map +1 -0
- package/lib/esm/TextAnnotationElement.js +89 -0
- package/lib/esm/TextAnnotationElement.js.map +1 -0
- package/lib/esm/TextAnnotationGeometry.d.ts +32 -0
- package/lib/esm/TextAnnotationGeometry.d.ts.map +1 -0
- package/lib/esm/TextAnnotationGeometry.js +181 -0
- package/lib/esm/TextAnnotationGeometry.js.map +1 -0
- package/lib/esm/TextAnnotationLayout.d.ts +177 -0
- package/lib/esm/TextAnnotationLayout.d.ts.map +1 -0
- package/lib/esm/TextAnnotationLayout.js +513 -0
- package/lib/esm/TextAnnotationLayout.js.map +1 -0
- package/lib/esm/Texture.d.ts +58 -0
- package/lib/esm/Texture.d.ts.map +1 -0
- package/lib/esm/Texture.js +81 -0
- package/lib/esm/Texture.js.map +1 -0
- package/lib/esm/TileStorage.d.ts +59 -0
- package/lib/esm/TileStorage.d.ts.map +1 -0
- package/lib/esm/TileStorage.js +158 -0
- package/lib/esm/TileStorage.js.map +1 -0
- package/lib/esm/TxnManager.d.ts +296 -0
- package/lib/esm/TxnManager.d.ts.map +1 -0
- package/lib/esm/TxnManager.js +619 -0
- package/lib/esm/TxnManager.js.map +1 -0
- package/lib/esm/ViewDefinition.d.ts +392 -0
- package/lib/esm/ViewDefinition.d.ts.map +1 -0
- package/lib/esm/ViewDefinition.js +638 -0
- package/lib/esm/ViewDefinition.js.map +1 -0
- package/lib/esm/ViewStateHydrator.d.ts +14 -0
- package/lib/esm/ViewStateHydrator.d.ts.map +1 -0
- package/lib/esm/ViewStateHydrator.js +89 -0
- package/lib/esm/ViewStateHydrator.js.map +1 -0
- package/lib/esm/ViewStore.d.ts +502 -0
- package/lib/esm/ViewStore.d.ts.map +1 -0
- package/lib/esm/ViewStore.js +1259 -0
- package/lib/esm/ViewStore.js.map +1 -0
- package/lib/esm/core-backend.d.ts +183 -0
- package/lib/esm/core-backend.d.ts.map +1 -0
- package/lib/esm/core-backend.js +187 -0
- package/lib/esm/core-backend.js.map +1 -0
- package/lib/esm/domains/FunctionalElements.d.ts +86 -0
- package/lib/esm/domains/FunctionalElements.d.ts.map +1 -0
- package/lib/esm/domains/FunctionalElements.js +117 -0
- package/lib/esm/domains/FunctionalElements.js.map +1 -0
- package/lib/esm/domains/FunctionalSchema.d.ts +14 -0
- package/lib/esm/domains/FunctionalSchema.d.ts.map +1 -0
- package/lib/esm/domains/FunctionalSchema.js +37 -0
- package/lib/esm/domains/FunctionalSchema.js.map +1 -0
- package/lib/esm/domains/GenericElements.d.ts +160 -0
- package/lib/esm/domains/GenericElements.d.ts.map +1 -0
- package/lib/esm/domains/GenericElements.js +225 -0
- package/lib/esm/domains/GenericElements.js.map +1 -0
- package/lib/esm/domains/GenericSchema.d.ts +11 -0
- package/lib/esm/domains/GenericSchema.d.ts.map +1 -0
- package/lib/esm/domains/GenericSchema.js +25 -0
- package/lib/esm/domains/GenericSchema.js.map +1 -0
- package/lib/esm/internal/ChangesetConflictArgs.d.ts +62 -0
- package/lib/esm/internal/ChangesetConflictArgs.d.ts.map +1 -0
- package/lib/esm/internal/ChangesetConflictArgs.js +104 -0
- package/lib/esm/internal/ChangesetConflictArgs.js.map +1 -0
- package/lib/esm/internal/ChannelAdmin.d.ts +34 -0
- package/lib/esm/internal/ChannelAdmin.d.ts.map +1 -0
- package/lib/esm/internal/ChannelAdmin.js +122 -0
- package/lib/esm/internal/ChannelAdmin.js.map +1 -0
- package/lib/esm/internal/FontFileImpl.d.ts +34 -0
- package/lib/esm/internal/FontFileImpl.d.ts.map +1 -0
- package/lib/esm/internal/FontFileImpl.js +135 -0
- package/lib/esm/internal/FontFileImpl.js.map +1 -0
- package/lib/esm/internal/IModelDbFontsImpl.d.ts +7 -0
- package/lib/esm/internal/IModelDbFontsImpl.d.ts.map +1 -0
- package/lib/esm/internal/IModelDbFontsImpl.js +183 -0
- package/lib/esm/internal/IModelDbFontsImpl.js.map +1 -0
- package/lib/esm/internal/NativePlatform.d.ts +15 -0
- package/lib/esm/internal/NativePlatform.d.ts.map +1 -0
- package/lib/esm/internal/NativePlatform.js +43 -0
- package/lib/esm/internal/NativePlatform.js.map +1 -0
- package/lib/esm/internal/NoLocks.d.ts +6 -0
- package/lib/esm/internal/NoLocks.d.ts.map +1 -0
- package/lib/esm/internal/NoLocks.js +24 -0
- package/lib/esm/internal/NoLocks.js.map +1 -0
- package/lib/esm/internal/ServerBasedLocks.d.ts +52 -0
- package/lib/esm/internal/ServerBasedLocks.d.ts.map +1 -0
- package/lib/esm/internal/ServerBasedLocks.js +175 -0
- package/lib/esm/internal/ServerBasedLocks.js.map +1 -0
- package/lib/esm/internal/Symbols.d.ts +18 -0
- package/lib/esm/internal/Symbols.d.ts.map +1 -0
- package/lib/esm/internal/Symbols.js +25 -0
- package/lib/esm/internal/Symbols.js.map +1 -0
- package/lib/esm/internal/cross-package.d.ts +4 -0
- package/lib/esm/internal/cross-package.d.ts.map +1 -0
- package/lib/esm/internal/cross-package.js +8 -0
- package/lib/esm/internal/cross-package.js.map +1 -0
- package/lib/esm/internal/workspace/SettingsImpl.d.ts +43 -0
- package/lib/esm/internal/workspace/SettingsImpl.d.ts.map +1 -0
- package/lib/esm/internal/workspace/SettingsImpl.js +154 -0
- package/lib/esm/internal/workspace/SettingsImpl.js.map +1 -0
- package/lib/esm/internal/workspace/SettingsSchemasImpl.d.ts +6 -0
- package/lib/esm/internal/workspace/SettingsSchemasImpl.d.ts.map +1 -0
- package/lib/esm/internal/workspace/SettingsSchemasImpl.js +268 -0
- package/lib/esm/internal/workspace/SettingsSchemasImpl.js.map +1 -0
- package/lib/esm/internal/workspace/WorkspaceImpl.d.ts +41 -0
- package/lib/esm/internal/workspace/WorkspaceImpl.d.ts.map +1 -0
- package/lib/esm/internal/workspace/WorkspaceImpl.js +691 -0
- package/lib/esm/internal/workspace/WorkspaceImpl.js.map +1 -0
- package/lib/esm/internal/workspace/WorkspaceSqliteDb.d.ts +10 -0
- package/lib/esm/internal/workspace/WorkspaceSqliteDb.d.ts.map +1 -0
- package/lib/esm/internal/workspace/WorkspaceSqliteDb.js +35 -0
- package/lib/esm/internal/workspace/WorkspaceSqliteDb.js.map +1 -0
- package/lib/esm/rpc/multipart.d.ts +12 -0
- package/lib/esm/rpc/multipart.d.ts.map +1 -0
- package/lib/esm/rpc/multipart.js +67 -0
- package/lib/esm/rpc/multipart.js.map +1 -0
- package/lib/esm/rpc/tracing.d.ts +29 -0
- package/lib/esm/rpc/tracing.d.ts.map +1 -0
- package/lib/esm/rpc/tracing.js +71 -0
- package/lib/esm/rpc/tracing.js.map +1 -0
- package/lib/esm/rpc/web/logging.d.ts +10 -0
- package/lib/esm/rpc/web/logging.d.ts.map +1 -0
- package/lib/esm/rpc/web/logging.js +41 -0
- package/lib/esm/rpc/web/logging.js.map +1 -0
- package/lib/esm/rpc/web/request.d.ts +7 -0
- package/lib/esm/rpc/web/request.d.ts.map +1 -0
- package/lib/esm/rpc/web/request.js +71 -0
- package/lib/esm/rpc/web/request.js.map +1 -0
- package/lib/esm/rpc/web/response.d.ts +7 -0
- package/lib/esm/rpc/web/response.d.ts.map +1 -0
- package/lib/esm/rpc/web/response.js +136 -0
- package/lib/esm/rpc/web/response.js.map +1 -0
- package/lib/esm/rpc-impl/DevToolsRpcImpl.d.ts +16 -0
- package/lib/esm/rpc-impl/DevToolsRpcImpl.d.ts.map +1 -0
- package/lib/esm/rpc-impl/DevToolsRpcImpl.js +29 -0
- package/lib/esm/rpc-impl/DevToolsRpcImpl.js.map +1 -0
- package/lib/esm/rpc-impl/IModelReadRpcImpl.d.ts +51 -0
- package/lib/esm/rpc-impl/IModelReadRpcImpl.d.ts.map +1 -0
- package/lib/esm/rpc-impl/IModelReadRpcImpl.js +313 -0
- package/lib/esm/rpc-impl/IModelReadRpcImpl.js.map +1 -0
- package/lib/esm/rpc-impl/IModelTileRpcImpl.d.ts +21 -0
- package/lib/esm/rpc-impl/IModelTileRpcImpl.d.ts.map +1 -0
- package/lib/esm/rpc-impl/IModelTileRpcImpl.js +193 -0
- package/lib/esm/rpc-impl/IModelTileRpcImpl.js.map +1 -0
- package/lib/esm/rpc-impl/RpcBriefcaseUtility.d.ts +45 -0
- package/lib/esm/rpc-impl/RpcBriefcaseUtility.d.ts.map +1 -0
- package/lib/esm/rpc-impl/RpcBriefcaseUtility.js +166 -0
- package/lib/esm/rpc-impl/RpcBriefcaseUtility.js.map +1 -0
- package/lib/esm/rpc-impl/SnapshotIModelRpcImpl.d.ts +18 -0
- package/lib/esm/rpc-impl/SnapshotIModelRpcImpl.d.ts.map +1 -0
- package/lib/esm/rpc-impl/SnapshotIModelRpcImpl.js +41 -0
- package/lib/esm/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -0
- package/lib/esm/test/AdvancedEqual.d.ts +38 -0
- package/lib/esm/test/AdvancedEqual.d.ts.map +1 -0
- package/lib/esm/test/AdvancedEqual.js +67 -0
- package/lib/esm/test/AdvancedEqual.js.map +1 -0
- package/lib/esm/test/AttachDb.test.d.ts +2 -0
- package/lib/esm/test/AttachDb.test.d.ts.map +1 -0
- package/lib/esm/test/AttachDb.test.js +157 -0
- package/lib/esm/test/AttachDb.test.js.map +1 -0
- package/lib/esm/test/GeometryTestUtil.d.ts +7 -0
- package/lib/esm/test/GeometryTestUtil.d.ts.map +1 -0
- package/lib/esm/test/GeometryTestUtil.js +25 -0
- package/lib/esm/test/GeometryTestUtil.js.map +1 -0
- package/lib/esm/test/IModelHost.test.d.ts +2 -0
- package/lib/esm/test/IModelHost.test.d.ts.map +1 -0
- package/lib/esm/test/IModelHost.test.js +187 -0
- package/lib/esm/test/IModelHost.test.js.map +1 -0
- package/lib/esm/test/IModelTestUtils.d.ts +173 -0
- package/lib/esm/test/IModelTestUtils.d.ts.map +1 -0
- package/lib/esm/test/IModelTestUtils.js +1113 -0
- package/lib/esm/test/IModelTestUtils.js.map +1 -0
- package/lib/esm/test/ImageSourceConversion.test.d.ts +2 -0
- package/lib/esm/test/ImageSourceConversion.test.d.ts.map +1 -0
- package/lib/esm/test/ImageSourceConversion.test.js +171 -0
- package/lib/esm/test/ImageSourceConversion.test.js.map +1 -0
- package/lib/esm/test/IpcHost.test.d.ts +2 -0
- package/lib/esm/test/IpcHost.test.d.ts.map +1 -0
- package/lib/esm/test/IpcHost.test.js +55 -0
- package/lib/esm/test/IpcHost.test.js.map +1 -0
- package/lib/esm/test/KnownTestLocations.d.ts +7 -0
- package/lib/esm/test/KnownTestLocations.d.ts.map +1 -0
- package/lib/esm/test/KnownTestLocations.js +27 -0
- package/lib/esm/test/KnownTestLocations.js.map +1 -0
- package/lib/esm/test/PrintElementTree.d.ts +7 -0
- package/lib/esm/test/PrintElementTree.d.ts.map +1 -0
- package/lib/esm/test/PrintElementTree.js +35 -0
- package/lib/esm/test/PrintElementTree.js.map +1 -0
- package/lib/esm/test/PropertyDb.test.d.ts +2 -0
- package/lib/esm/test/PropertyDb.test.d.ts.map +1 -0
- package/lib/esm/test/PropertyDb.test.js +71 -0
- package/lib/esm/test/PropertyDb.test.js.map +1 -0
- package/lib/esm/test/RevisionUtility.d.ts +33 -0
- package/lib/esm/test/RevisionUtility.d.ts.map +1 -0
- package/lib/esm/test/RevisionUtility.js +52 -0
- package/lib/esm/test/RevisionUtility.js.map +1 -0
- package/lib/esm/test/SchemaUtils.test.d.ts +2 -0
- package/lib/esm/test/SchemaUtils.test.d.ts.map +1 -0
- package/lib/esm/test/SchemaUtils.test.js +97 -0
- package/lib/esm/test/SchemaUtils.test.js.map +1 -0
- package/lib/esm/test/SequentialLogMatcher.d.ts +35 -0
- package/lib/esm/test/SequentialLogMatcher.d.ts.map +1 -0
- package/lib/esm/test/SequentialLogMatcher.js +130 -0
- package/lib/esm/test/SequentialLogMatcher.js.map +1 -0
- package/lib/esm/test/TestChangeSetUtility.d.ts +23 -0
- package/lib/esm/test/TestChangeSetUtility.d.ts.map +1 -0
- package/lib/esm/test/TestChangeSetUtility.js +65 -0
- package/lib/esm/test/TestChangeSetUtility.js.map +1 -0
- package/lib/esm/test/TestUtils.d.ts +38 -0
- package/lib/esm/test/TestUtils.d.ts.map +1 -0
- package/lib/esm/test/TestUtils.js +99 -0
- package/lib/esm/test/TestUtils.js.map +1 -0
- package/lib/esm/test/annotations/TextAnnotation.test.d.ts +2 -0
- package/lib/esm/test/annotations/TextAnnotation.test.d.ts.map +1 -0
- package/lib/esm/test/annotations/TextAnnotation.test.js +1135 -0
- package/lib/esm/test/annotations/TextAnnotation.test.js.map +1 -0
- package/lib/esm/test/categories/Category.test.d.ts +2 -0
- package/lib/esm/test/categories/Category.test.d.ts.map +1 -0
- package/lib/esm/test/categories/Category.test.js +51 -0
- package/lib/esm/test/categories/Category.test.js.map +1 -0
- package/lib/esm/test/codespec/CodeSpec.test.d.ts +2 -0
- package/lib/esm/test/codespec/CodeSpec.test.d.ts.map +1 -0
- package/lib/esm/test/codespec/CodeSpec.test.js +51 -0
- package/lib/esm/test/codespec/CodeSpec.test.js.map +1 -0
- package/lib/esm/test/ecdb/CTE.test.d.ts +2 -0
- package/lib/esm/test/ecdb/CTE.test.d.ts.map +1 -0
- package/lib/esm/test/ecdb/CTE.test.js +177 -0
- package/lib/esm/test/ecdb/CTE.test.js.map +1 -0
- package/lib/esm/test/ecdb/ConcurrentQueryLoad.test.d.ts +2 -0
- package/lib/esm/test/ecdb/ConcurrentQueryLoad.test.d.ts.map +1 -0
- package/lib/esm/test/ecdb/ConcurrentQueryLoad.test.js +167 -0
- package/lib/esm/test/ecdb/ConcurrentQueryLoad.test.js.map +1 -0
- package/lib/esm/test/ecdb/ECDb.test.d.ts +2 -0
- package/lib/esm/test/ecdb/ECDb.test.d.ts.map +1 -0
- package/lib/esm/test/ecdb/ECDb.test.js +642 -0
- package/lib/esm/test/ecdb/ECDb.test.js.map +1 -0
- package/lib/esm/test/ecdb/ECDbTestHelper.d.ts +5 -0
- package/lib/esm/test/ecdb/ECDbTestHelper.d.ts.map +1 -0
- package/lib/esm/test/ecdb/ECDbTestHelper.js +28 -0
- package/lib/esm/test/ecdb/ECDbTestHelper.js.map +1 -0
- package/lib/esm/test/ecdb/ECSchemaXmlContext.test.d.ts +2 -0
- package/lib/esm/test/ecdb/ECSchemaXmlContext.test.d.ts.map +1 -0
- package/lib/esm/test/ecdb/ECSchemaXmlContext.test.js +63 -0
- package/lib/esm/test/ecdb/ECSchemaXmlContext.test.js.map +1 -0
- package/lib/esm/test/ecdb/ECSqlAst.test.d.ts +5 -0
- package/lib/esm/test/ecdb/ECSqlAst.test.d.ts.map +1 -0
- package/lib/esm/test/ecdb/ECSqlAst.test.js +971 -0
- package/lib/esm/test/ecdb/ECSqlAst.test.js.map +1 -0
- package/lib/esm/test/ecdb/ECSqlQuery.test.d.ts +2 -0
- package/lib/esm/test/ecdb/ECSqlQuery.test.d.ts.map +1 -0
- package/lib/esm/test/ecdb/ECSqlQuery.test.js +770 -0
- package/lib/esm/test/ecdb/ECSqlQuery.test.js.map +1 -0
- package/lib/esm/test/ecdb/ECSqlReader.test.d.ts +2 -0
- package/lib/esm/test/ecdb/ECSqlReader.test.d.ts.map +1 -0
- package/lib/esm/test/ecdb/ECSqlReader.test.js +669 -0
- package/lib/esm/test/ecdb/ECSqlReader.test.js.map +1 -0
- package/lib/esm/test/ecdb/ECSqlStatement.test.d.ts +2 -0
- package/lib/esm/test/ecdb/ECSqlStatement.test.d.ts.map +1 -0
- package/lib/esm/test/ecdb/ECSqlStatement.test.js +3239 -0
- package/lib/esm/test/ecdb/ECSqlStatement.test.js.map +1 -0
- package/lib/esm/test/ecdb/SqliteStatement.test.d.ts +2 -0
- package/lib/esm/test/ecdb/SqliteStatement.test.d.ts.map +1 -0
- package/lib/esm/test/ecdb/SqliteStatement.test.js +508 -0
- package/lib/esm/test/ecdb/SqliteStatement.test.js.map +1 -0
- package/lib/esm/test/ecsql/dataset/ECSqlDatasets.d.ts +4 -0
- package/lib/esm/test/ecsql/dataset/ECSqlDatasets.d.ts.map +1 -0
- package/lib/esm/test/ecsql/dataset/ECSqlDatasets.js +127 -0
- package/lib/esm/test/ecsql/dataset/ECSqlDatasets.js.map +1 -0
- package/lib/esm/test/ecsql/src/ECSqlTestGenerator.d.ts +2 -0
- package/lib/esm/test/ecsql/src/ECSqlTestGenerator.d.ts.map +1 -0
- package/lib/esm/test/ecsql/src/ECSqlTestGenerator.js +196 -0
- package/lib/esm/test/ecsql/src/ECSqlTestGenerator.js.map +1 -0
- package/lib/esm/test/ecsql/src/ECSqlTestParser.d.ts +66 -0
- package/lib/esm/test/ecsql/src/ECSqlTestParser.d.ts.map +1 -0
- package/lib/esm/test/ecsql/src/ECSqlTestParser.js +420 -0
- package/lib/esm/test/ecsql/src/ECSqlTestParser.js.map +1 -0
- package/lib/esm/test/ecsql/src/ECSqlTestRunner.test.d.ts +2 -0
- package/lib/esm/test/ecsql/src/ECSqlTestRunner.test.d.ts.map +1 -0
- package/lib/esm/test/ecsql/src/ECSqlTestRunner.test.js +365 -0
- package/lib/esm/test/ecsql/src/ECSqlTestRunner.test.js.map +1 -0
- package/lib/esm/test/element/DeleteDefinitionElements.test.d.ts +2 -0
- package/lib/esm/test/element/DeleteDefinitionElements.test.d.ts.map +1 -0
- package/lib/esm/test/element/DeleteDefinitionElements.test.js +208 -0
- package/lib/esm/test/element/DeleteDefinitionElements.test.js.map +1 -0
- package/lib/esm/test/element/ElementAspect.test.d.ts +2 -0
- package/lib/esm/test/element/ElementAspect.test.d.ts.map +1 -0
- package/lib/esm/test/element/ElementAspect.test.js +363 -0
- package/lib/esm/test/element/ElementAspect.test.js.map +1 -0
- package/lib/esm/test/element/ElementDependencyGraph.test.d.ts +2 -0
- package/lib/esm/test/element/ElementDependencyGraph.test.d.ts.map +1 -0
- package/lib/esm/test/element/ElementDependencyGraph.test.js +383 -0
- package/lib/esm/test/element/ElementDependencyGraph.test.js.map +1 -0
- package/lib/esm/test/element/ElementRoundTrip.test.d.ts +2 -0
- package/lib/esm/test/element/ElementRoundTrip.test.d.ts.map +1 -0
- package/lib/esm/test/element/ElementRoundTrip.test.js +916 -0
- package/lib/esm/test/element/ElementRoundTrip.test.js.map +1 -0
- package/lib/esm/test/element/ExcludedElements.test.d.ts +2 -0
- package/lib/esm/test/element/ExcludedElements.test.d.ts.map +1 -0
- package/lib/esm/test/element/ExcludedElements.test.js +57 -0
- package/lib/esm/test/element/ExcludedElements.test.js.map +1 -0
- package/lib/esm/test/element/ExternalSource.test.d.ts +2 -0
- package/lib/esm/test/element/ExternalSource.test.d.ts.map +1 -0
- package/lib/esm/test/element/ExternalSource.test.js +107 -0
- package/lib/esm/test/element/ExternalSource.test.js.map +1 -0
- package/lib/esm/test/element/NullStructArray.test.d.ts +2 -0
- package/lib/esm/test/element/NullStructArray.test.d.ts.map +1 -0
- package/lib/esm/test/element/NullStructArray.test.js +77 -0
- package/lib/esm/test/element/NullStructArray.test.js.map +1 -0
- package/lib/esm/test/element/UrlLink.test.d.ts +2 -0
- package/lib/esm/test/element/UrlLink.test.d.ts.map +1 -0
- package/lib/esm/test/element/UrlLink.test.js +36 -0
- package/lib/esm/test/element/UrlLink.test.js.map +1 -0
- package/lib/esm/test/font/FontFile.test.d.ts +2 -0
- package/lib/esm/test/font/FontFile.test.d.ts.map +1 -0
- package/lib/esm/test/font/FontFile.test.js +139 -0
- package/lib/esm/test/font/FontFile.test.js.map +1 -0
- package/lib/esm/test/font/IModelDbFonts.test.d.ts +2 -0
- package/lib/esm/test/font/IModelDbFonts.test.d.ts.map +1 -0
- package/lib/esm/test/font/IModelDbFonts.test.js +264 -0
- package/lib/esm/test/font/IModelDbFonts.test.js.map +1 -0
- package/lib/esm/test/hubaccess/BriefcaseManager.test.d.ts +2 -0
- package/lib/esm/test/hubaccess/BriefcaseManager.test.d.ts.map +1 -0
- package/lib/esm/test/hubaccess/BriefcaseManager.test.js +165 -0
- package/lib/esm/test/hubaccess/BriefcaseManager.test.js.map +1 -0
- package/lib/esm/test/hubaccess/CheckpointManager.test.d.ts +2 -0
- package/lib/esm/test/hubaccess/CheckpointManager.test.d.ts.map +1 -0
- package/lib/esm/test/hubaccess/CheckpointManager.test.js +137 -0
- package/lib/esm/test/hubaccess/CheckpointManager.test.js.map +1 -0
- package/lib/esm/test/imageData.d.ts +9 -0
- package/lib/esm/test/imageData.d.ts.map +1 -0
- package/lib/esm/test/imageData.js +16 -0
- package/lib/esm/test/imageData.js.map +1 -0
- package/lib/esm/test/imodel/ElementTreeWalker.test.d.ts +2 -0
- package/lib/esm/test/imodel/ElementTreeWalker.test.d.ts.map +1 -0
- package/lib/esm/test/imodel/ElementTreeWalker.test.js +382 -0
- package/lib/esm/test/imodel/ElementTreeWalker.test.js.map +1 -0
- package/lib/esm/test/imodel/GetTextureImage.test.d.ts +2 -0
- package/lib/esm/test/imodel/GetTextureImage.test.d.ts.map +1 -0
- package/lib/esm/test/imodel/GetTextureImage.test.js +29 -0
- package/lib/esm/test/imodel/GetTextureImage.test.js.map +1 -0
- package/lib/esm/test/imodel/IModel.test.d.ts +2 -0
- package/lib/esm/test/imodel/IModel.test.d.ts.map +1 -0
- package/lib/esm/test/imodel/IModel.test.js +2601 -0
- package/lib/esm/test/imodel/IModel.test.js.map +1 -0
- package/lib/esm/test/imodel/ProjectExtents.test.d.ts +2 -0
- package/lib/esm/test/imodel/ProjectExtents.test.d.ts.map +1 -0
- package/lib/esm/test/imodel/ProjectExtents.test.js +66 -0
- package/lib/esm/test/imodel/ProjectExtents.test.js.map +1 -0
- package/lib/esm/test/imodel/SchemaXmlImport.test.d.ts +2 -0
- package/lib/esm/test/imodel/SchemaXmlImport.test.d.ts.map +1 -0
- package/lib/esm/test/imodel/SchemaXmlImport.test.js +74 -0
- package/lib/esm/test/imodel/SchemaXmlImport.test.js.map +1 -0
- package/lib/esm/test/index.d.ts +7 -0
- package/lib/esm/test/index.d.ts.map +1 -0
- package/lib/esm/test/index.js +11 -0
- package/lib/esm/test/index.js.map +1 -0
- package/lib/esm/test/misc/DevTools.test.d.ts +2 -0
- package/lib/esm/test/misc/DevTools.test.d.ts.map +1 -0
- package/lib/esm/test/misc/DevTools.test.js +72 -0
- package/lib/esm/test/misc/DevTools.test.js.map +1 -0
- package/lib/esm/test/misc/EntitySubClasses.test.d.ts +2 -0
- package/lib/esm/test/misc/EntitySubClasses.test.d.ts.map +1 -0
- package/lib/esm/test/misc/EntitySubClasses.test.js +106 -0
- package/lib/esm/test/misc/EntitySubClasses.test.js.map +1 -0
- package/lib/esm/test/misc/GeoServices.test.d.ts +2 -0
- package/lib/esm/test/misc/GeoServices.test.d.ts.map +1 -0
- package/lib/esm/test/misc/GeoServices.test.js +850 -0
- package/lib/esm/test/misc/GeoServices.test.js.map +1 -0
- package/lib/esm/test/misc/PromiseMemoizer.test.d.ts +2 -0
- package/lib/esm/test/misc/PromiseMemoizer.test.d.ts.map +1 -0
- package/lib/esm/test/misc/PromiseMemoizer.test.js +111 -0
- package/lib/esm/test/misc/PromiseMemoizer.test.js.map +1 -0
- package/lib/esm/test/native/DgnDbWorker.test.d.ts +2 -0
- package/lib/esm/test/native/DgnDbWorker.test.d.ts.map +1 -0
- package/lib/esm/test/native/DgnDbWorker.test.js +159 -0
- package/lib/esm/test/native/DgnDbWorker.test.js.map +1 -0
- package/lib/esm/test/rpc/response.test.d.ts +2 -0
- package/lib/esm/test/rpc/response.test.d.ts.map +1 -0
- package/lib/esm/test/rpc/response.test.js +112 -0
- package/lib/esm/test/rpc/response.test.js.map +1 -0
- package/lib/esm/test/schema/ClassRegistry.test.d.ts +2 -0
- package/lib/esm/test/schema/ClassRegistry.test.d.ts.map +1 -0
- package/lib/esm/test/schema/ClassRegistry.test.js +679 -0
- package/lib/esm/test/schema/ClassRegistry.test.js.map +1 -0
- package/lib/esm/test/schema/FunctionalDomain.test.d.ts +2 -0
- package/lib/esm/test/schema/FunctionalDomain.test.d.ts.map +1 -0
- package/lib/esm/test/schema/FunctionalDomain.test.js +490 -0
- package/lib/esm/test/schema/FunctionalDomain.test.js.map +1 -0
- package/lib/esm/test/schema/GenericDomain.test.d.ts +2 -0
- package/lib/esm/test/schema/GenericDomain.test.d.ts.map +1 -0
- package/lib/esm/test/schema/GenericDomain.test.js +132 -0
- package/lib/esm/test/schema/GenericDomain.test.js.map +1 -0
- package/lib/esm/test/schema/IModelSchemaContext.test.d.ts +2 -0
- package/lib/esm/test/schema/IModelSchemaContext.test.d.ts.map +1 -0
- package/lib/esm/test/schema/IModelSchemaContext.test.js +95 -0
- package/lib/esm/test/schema/IModelSchemaContext.test.js.map +1 -0
- package/lib/esm/test/sheetindex/SheetIndex.test.d.ts +4 -0
- package/lib/esm/test/sheetindex/SheetIndex.test.d.ts.map +1 -0
- package/lib/esm/test/sheetindex/SheetIndex.test.js +312 -0
- package/lib/esm/test/sheetindex/SheetIndex.test.js.map +1 -0
- package/lib/esm/test/standalone/ChangeMerge.test.d.ts +2 -0
- package/lib/esm/test/standalone/ChangeMerge.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/ChangeMerge.test.js +413 -0
- package/lib/esm/test/standalone/ChangeMerge.test.js.map +1 -0
- package/lib/esm/test/standalone/ChangesetReader.test.d.ts +2 -0
- package/lib/esm/test/standalone/ChangesetReader.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/ChangesetReader.test.js +890 -0
- package/lib/esm/test/standalone/ChangesetReader.test.js.map +1 -0
- package/lib/esm/test/standalone/CustomViewState3dCreator.test.d.ts +2 -0
- package/lib/esm/test/standalone/CustomViewState3dCreator.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/CustomViewState3dCreator.test.js +49 -0
- package/lib/esm/test/standalone/CustomViewState3dCreator.test.js.map +1 -0
- package/lib/esm/test/standalone/DisplayStyle.test.d.ts +2 -0
- package/lib/esm/test/standalone/DisplayStyle.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/DisplayStyle.test.js +136 -0
- package/lib/esm/test/standalone/DisplayStyle.test.js.map +1 -0
- package/lib/esm/test/standalone/ElementGraphics.test.d.ts +2 -0
- package/lib/esm/test/standalone/ElementGraphics.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/ElementGraphics.test.js +127 -0
- package/lib/esm/test/standalone/ElementGraphics.test.js.map +1 -0
- package/lib/esm/test/standalone/ElementMesh.test.d.ts +2 -0
- package/lib/esm/test/standalone/ElementMesh.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/ElementMesh.test.js +142 -0
- package/lib/esm/test/standalone/ElementMesh.test.js.map +1 -0
- package/lib/esm/test/standalone/ExportGraphics.test.d.ts +2 -0
- package/lib/esm/test/standalone/ExportGraphics.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/ExportGraphics.test.js +1040 -0
- package/lib/esm/test/standalone/ExportGraphics.test.js.map +1 -0
- package/lib/esm/test/standalone/GeometryChangeEvents.test.d.ts +2 -0
- package/lib/esm/test/standalone/GeometryChangeEvents.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/GeometryChangeEvents.test.js +139 -0
- package/lib/esm/test/standalone/GeometryChangeEvents.test.js.map +1 -0
- package/lib/esm/test/standalone/GeometryStream.test.d.ts +2 -0
- package/lib/esm/test/standalone/GeometryStream.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/GeometryStream.test.js +2869 -0
- package/lib/esm/test/standalone/GeometryStream.test.js.map +1 -0
- package/lib/esm/test/standalone/HubMock.test.d.ts +2 -0
- package/lib/esm/test/standalone/HubMock.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/HubMock.test.js +343 -0
- package/lib/esm/test/standalone/HubMock.test.js.map +1 -0
- package/lib/esm/test/standalone/IModelWrite.test.d.ts +7 -0
- package/lib/esm/test/standalone/IModelWrite.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/IModelWrite.test.js +859 -0
- package/lib/esm/test/standalone/IModelWrite.test.js.map +1 -0
- package/lib/esm/test/standalone/InlineGeometryPartReferences.test.d.ts +2 -0
- package/lib/esm/test/standalone/InlineGeometryPartReferences.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/InlineGeometryPartReferences.test.js +417 -0
- package/lib/esm/test/standalone/InlineGeometryPartReferences.test.js.map +1 -0
- package/lib/esm/test/standalone/MergeConflict.test.d.ts +7 -0
- package/lib/esm/test/standalone/MergeConflict.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/MergeConflict.test.js +345 -0
- package/lib/esm/test/standalone/MergeConflict.test.js.map +1 -0
- package/lib/esm/test/standalone/NativeAppStorage.test.d.ts +2 -0
- package/lib/esm/test/standalone/NativeAppStorage.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/NativeAppStorage.test.js +121 -0
- package/lib/esm/test/standalone/NativeAppStorage.test.js.map +1 -0
- package/lib/esm/test/standalone/RenderMaterialElement.test.d.ts +2 -0
- package/lib/esm/test/standalone/RenderMaterialElement.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/RenderMaterialElement.test.js +398 -0
- package/lib/esm/test/standalone/RenderMaterialElement.test.js.map +1 -0
- package/lib/esm/test/standalone/RenderTimeline.test.d.ts +2 -0
- package/lib/esm/test/standalone/RenderTimeline.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/RenderTimeline.test.js +71 -0
- package/lib/esm/test/standalone/RenderTimeline.test.js.map +1 -0
- package/lib/esm/test/standalone/SQLiteDb.test.d.ts +2 -0
- package/lib/esm/test/standalone/SQLiteDb.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/SQLiteDb.test.js +63 -0
- package/lib/esm/test/standalone/SQLiteDb.test.js.map +1 -0
- package/lib/esm/test/standalone/SchemaUtils.test.d.ts +2 -0
- package/lib/esm/test/standalone/SchemaUtils.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/SchemaUtils.test.js +25 -0
- package/lib/esm/test/standalone/SchemaUtils.test.js.map +1 -0
- package/lib/esm/test/standalone/SectionDrawing.test.d.ts +2 -0
- package/lib/esm/test/standalone/SectionDrawing.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/SectionDrawing.test.js +83 -0
- package/lib/esm/test/standalone/SectionDrawing.test.js.map +1 -0
- package/lib/esm/test/standalone/ServerBasedLocks.test.d.ts +2 -0
- package/lib/esm/test/standalone/ServerBasedLocks.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/ServerBasedLocks.test.js +279 -0
- package/lib/esm/test/standalone/ServerBasedLocks.test.js.map +1 -0
- package/lib/esm/test/standalone/Setting.test.d.ts +2 -0
- package/lib/esm/test/standalone/Setting.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/Setting.test.js +76 -0
- package/lib/esm/test/standalone/Setting.test.js.map +1 -0
- package/lib/esm/test/standalone/Settings.test.d.ts +2 -0
- package/lib/esm/test/standalone/Settings.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/Settings.test.js +349 -0
- package/lib/esm/test/standalone/Settings.test.js.map +1 -0
- package/lib/esm/test/standalone/SettingsSchemas.test.d.ts +2 -0
- package/lib/esm/test/standalone/SettingsSchemas.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/SettingsSchemas.test.js +31 -0
- package/lib/esm/test/standalone/SettingsSchemas.test.js.map +1 -0
- package/lib/esm/test/standalone/SnapshotDb.test.d.ts +2 -0
- package/lib/esm/test/standalone/SnapshotDb.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/SnapshotDb.test.js +153 -0
- package/lib/esm/test/standalone/SnapshotDb.test.js.map +1 -0
- package/lib/esm/test/standalone/Texture.test.d.ts +2 -0
- package/lib/esm/test/standalone/Texture.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/Texture.test.js +90 -0
- package/lib/esm/test/standalone/Texture.test.js.map +1 -0
- package/lib/esm/test/standalone/TileCache.test.d.ts +9 -0
- package/lib/esm/test/standalone/TileCache.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/TileCache.test.js +127 -0
- package/lib/esm/test/standalone/TileCache.test.js.map +1 -0
- package/lib/esm/test/standalone/TileTree.test.d.ts +2 -0
- package/lib/esm/test/standalone/TileTree.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/TileTree.test.js +241 -0
- package/lib/esm/test/standalone/TileTree.test.js.map +1 -0
- package/lib/esm/test/standalone/TxnManager.test.d.ts +2 -0
- package/lib/esm/test/standalone/TxnManager.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/TxnManager.test.js +878 -0
- package/lib/esm/test/standalone/TxnManager.test.js.map +1 -0
- package/lib/esm/test/standalone/ViewDefinition.test.d.ts +2 -0
- package/lib/esm/test/standalone/ViewDefinition.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/ViewDefinition.test.js +279 -0
- package/lib/esm/test/standalone/ViewDefinition.test.js.map +1 -0
- package/lib/esm/test/standalone/ViewStoreDb.test.d.ts +2 -0
- package/lib/esm/test/standalone/ViewStoreDb.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/ViewStoreDb.test.js +288 -0
- package/lib/esm/test/standalone/ViewStoreDb.test.js.map +1 -0
- package/lib/esm/test/standalone/Workspace.test.d.ts +2 -0
- package/lib/esm/test/standalone/Workspace.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/Workspace.test.js +161 -0
- package/lib/esm/test/standalone/Workspace.test.js.map +1 -0
- package/lib/esm/workspace/Settings.d.ts +216 -0
- package/lib/esm/workspace/Settings.d.ts.map +1 -0
- package/lib/esm/workspace/Settings.js +83 -0
- package/lib/esm/workspace/Settings.js.map +1 -0
- package/lib/esm/workspace/SettingsSchemas.d.ts +135 -0
- package/lib/esm/workspace/SettingsSchemas.d.ts.map +1 -0
- package/lib/esm/workspace/SettingsSchemas.js +9 -0
- package/lib/esm/workspace/SettingsSchemas.js.map +1 -0
- package/lib/esm/workspace/Workspace.d.ts +507 -0
- package/lib/esm/workspace/Workspace.d.ts.map +1 -0
- package/lib/esm/workspace/Workspace.js +97 -0
- package/lib/esm/workspace/Workspace.js.map +1 -0
- package/lib/esm/workspace/WorkspaceEditor.d.ts +245 -0
- package/lib/esm/workspace/WorkspaceEditor.d.ts.map +1 -0
- package/lib/esm/workspace/WorkspaceEditor.js +31 -0
- package/lib/esm/workspace/WorkspaceEditor.js.map +1 -0
- package/package.json +35 -28
- package/lib/cjs/IModelCloneContext.d.ts +0 -9
- package/lib/cjs/IModelCloneContext.d.ts.map +0 -1
- package/lib/cjs/IModelCloneContext.js.map +0 -1
|
@@ -0,0 +1,1398 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module iModels
|
|
3
|
+
*/
|
|
4
|
+
import { IModelJsNative } from "@bentley/imodeljs-native";
|
|
5
|
+
import { AccessToken, BeEvent, BentleyStatus, DbResult, GuidString, Id64Arg, Id64Array, Id64Set, Id64String, IModelStatus, OpenMode } from "@itwin/core-bentley";
|
|
6
|
+
import { AxisAlignedBox3d, BRepGeometryCreate, BriefcaseId, ChangesetIdWithIndex, Code, CodeProps, CreateEmptySnapshotIModelProps, CreateEmptyStandaloneIModelProps, CreateSnapshotIModelProps, EcefLocation, ECSchemaProps, ECSqlReader, ElementAspectProps, ElementGeometryCacheOperationRequestProps, ElementGeometryCacheRequestProps, ElementGeometryCacheResponseProps, ElementGeometryRequest, ElementGraphicsRequestProps, ElementLoadProps, ElementProps, EntityMetaData, EntityProps, EntityQueryParams, FilePropertyProps, FontMap, GeoCoordinatesRequestProps, GeoCoordinatesResponseProps, GeometryContainmentRequestProps, GeometryContainmentResponseProps, IModel, IModelCoordinatesRequestProps, IModelCoordinatesResponseProps, IModelTileTreeProps, LocalFileName, MassPropertiesRequestProps, MassPropertiesResponseProps, ModelExtentsProps, ModelLoadProps, ModelProps, OpenBriefcaseProps, OpenCheckpointArgs, OpenSqliteArgs, PropertyCallback, QueryBinder, QueryOptions, SchemaState, SnapRequestProps, SnapResponseProps, SnapshotOpenOptions, SubCategoryResultRow, TextureData, TextureLoadProps, ThumbnailProps, UpgradeOptions, ViewDefinitionProps, ViewIdString, ViewQueryParams, ViewStateLoadProps, ViewStateProps } from "@itwin/core-common";
|
|
7
|
+
import { Range3d } from "@itwin/core-geometry";
|
|
8
|
+
import { PullChangesArgs, PushChangesArgs, RevertChangesArgs } from "./BriefcaseManager";
|
|
9
|
+
import { ChannelControl } from "./ChannelControl";
|
|
10
|
+
import { CheckpointProps } from "./CheckpointManager";
|
|
11
|
+
import { EntityJsClassMap, MetaDataRegistry } from "./ClassRegistry";
|
|
12
|
+
import { CloudSqlite } from "./CloudSqlite";
|
|
13
|
+
import { CodeService } from "./CodeService";
|
|
14
|
+
import { CodeSpecs } from "./CodeSpecs";
|
|
15
|
+
import { ECSchemaXmlContext } from "./ECSchemaXmlContext";
|
|
16
|
+
import { ECSqlStatement } from "./ECSqlStatement";
|
|
17
|
+
import { Element, Subject } from "./Element";
|
|
18
|
+
import { ElementAspect } from "./ElementAspect";
|
|
19
|
+
import { Entity, EntityClassType } from "./Entity";
|
|
20
|
+
import { ExportGraphicsOptions, ExportPartGraphicsOptions } from "./ExportGraphics";
|
|
21
|
+
import { Model } from "./Model";
|
|
22
|
+
import { Relationships } from "./Relationship";
|
|
23
|
+
import { SqliteStatement } from "./SqliteStatement";
|
|
24
|
+
import { ComputeRangesForTextLayoutArgs, TextLayoutRanges } from "./TextAnnotationLayout";
|
|
25
|
+
import { TxnManager } from "./TxnManager";
|
|
26
|
+
import { ViewDefinition } from "./ViewDefinition";
|
|
27
|
+
import { ViewStore } from "./ViewStore";
|
|
28
|
+
import { SettingsContainer } from "./workspace/Settings";
|
|
29
|
+
import { Workspace } from "./workspace/Workspace";
|
|
30
|
+
import { LockControl } from "./LockControl";
|
|
31
|
+
import type { BlobContainer } from "./BlobContainerService";
|
|
32
|
+
import { IModelDbFonts } from "./IModelDbFonts";
|
|
33
|
+
import { _nativeDb } from "./internal/Symbols";
|
|
34
|
+
import { SchemaContext } from "@itwin/ecschema-metadata";
|
|
35
|
+
import { SchemaMap } from "./Schema";
|
|
36
|
+
/** Options for [[IModelDb.Models.updateModel]]
|
|
37
|
+
* @note To mark *only* the geometry as changed, use [[IModelDb.Models.updateGeometryGuid]] instead.
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export interface UpdateModelOptions extends ModelProps {
|
|
41
|
+
/** If defined, update the last modify time of the Model */
|
|
42
|
+
updateLastMod?: boolean;
|
|
43
|
+
/** If defined, update the GeometryGuid of the Model */
|
|
44
|
+
geometryChanged?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** Options supposed to [[IModelDb.Elements.insertElement]].
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export interface InsertElementOptions {
|
|
50
|
+
/** If true, instead of assigning a new, unique Id to the inserted element, the inserted element will use the Id specified by the supplied [ElementProps]($common).
|
|
51
|
+
* This is chiefly useful when applying a filtering transformation - i.e., copying some elements from a source iModel to a target iModel and adding no new elements.
|
|
52
|
+
* If this option is `true` then [ElementProps.id]($common) must be a valid Id that is not already used by an element in the iModel.
|
|
53
|
+
* @beta
|
|
54
|
+
*/
|
|
55
|
+
forceUseId?: boolean;
|
|
56
|
+
}
|
|
57
|
+
/** Options supplied to [[IModelDb.computeProjectExtents]].
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export interface ComputeProjectExtentsOptions {
|
|
61
|
+
/** If true, the result will include `extentsWithOutliers`. */
|
|
62
|
+
reportExtentsWithOutliers?: boolean;
|
|
63
|
+
/** If true, the result will include `outliers`. */
|
|
64
|
+
reportOutliers?: boolean;
|
|
65
|
+
}
|
|
66
|
+
/** The result of [[IModelDb.computeProjectExtents]].
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export interface ComputedProjectExtents {
|
|
70
|
+
/** The computed extents, excluding any outlier elements. */
|
|
71
|
+
extents: Range3d;
|
|
72
|
+
/** If requested by caller, the computed extents, *including* any outlier elements. */
|
|
73
|
+
extentsWithOutliers?: Range3d;
|
|
74
|
+
/** If requested by caller, the Ids of outlier elements excluded from the computed extents. */
|
|
75
|
+
outliers?: Id64Array;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Options for the importing of schemas
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export interface SchemaImportOptions {
|
|
82
|
+
/**
|
|
83
|
+
* An [[ECSchemaXmlContext]] to use instead of building a default one.
|
|
84
|
+
* This can be useful in rare cases where custom schema location logic is necessary
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
ecSchemaXmlContext?: ECSchemaXmlContext;
|
|
88
|
+
}
|
|
89
|
+
/** @internal */
|
|
90
|
+
export declare enum BriefcaseLocalValue {
|
|
91
|
+
StandaloneEdit = "StandaloneEdit",
|
|
92
|
+
NoLocking = "NoLocking"
|
|
93
|
+
}
|
|
94
|
+
/** Arguments supplied to [[IModelDb.exportSchema]] specifying which ECSchema to write to what location on the local file system.
|
|
95
|
+
* @beta
|
|
96
|
+
*/
|
|
97
|
+
export interface ExportSchemaArgs {
|
|
98
|
+
/** The name of the ECSchema to export. */
|
|
99
|
+
schemaName: string;
|
|
100
|
+
/** The directory in which to place the created schema file. */
|
|
101
|
+
outputDirectory: LocalFileName;
|
|
102
|
+
/** Optionally, the name of the file to create in [[outputDirectory]].
|
|
103
|
+
* Defaults to <SchemaName>.<SchemaVersion>.ecschema.xml
|
|
104
|
+
*/
|
|
105
|
+
outputFileName?: string;
|
|
106
|
+
}
|
|
107
|
+
/** Arguments supplied to [[IModelDb.simplifyElementGeometry]].
|
|
108
|
+
* @beta
|
|
109
|
+
*/
|
|
110
|
+
export interface SimplifyElementGeometryArgs {
|
|
111
|
+
/** The Id of the [[GeometricElement]] or [[GeometryPart]] whose geometry is to be simplified. */
|
|
112
|
+
id: Id64String;
|
|
113
|
+
/** If true, simplify by converting each [BRepEntity]($common) in the element's geometry stream to a high-resolution
|
|
114
|
+
* mesh or curve geometry.
|
|
115
|
+
*/
|
|
116
|
+
convertBReps?: boolean;
|
|
117
|
+
}
|
|
118
|
+
/** The output of [[IModelDb.inlineGeometryParts]].
|
|
119
|
+
* If [[numCandidateParts]], [[numRefsInlined]], and [[numPartsDeleted ]] are all the same, the operation was fully successful.
|
|
120
|
+
* Otherwise, some errors occurred inlining and/or deleting one or more parts.
|
|
121
|
+
* A part will not be deleted unless it is first successfully inlined.
|
|
122
|
+
* @beta
|
|
123
|
+
*/
|
|
124
|
+
export interface InlineGeometryPartsResult {
|
|
125
|
+
/** The number of parts that were determined to have exactly one reference, making them candidates for inlining. */
|
|
126
|
+
numCandidateParts: number;
|
|
127
|
+
/** The number of part references successfully inlined. */
|
|
128
|
+
numRefsInlined: number;
|
|
129
|
+
/** The number of candidate parts that were successfully deleted after inlining. */
|
|
130
|
+
numPartsDeleted: number;
|
|
131
|
+
}
|
|
132
|
+
/** An iModel database file. The database file can either be a briefcase or a snapshot.
|
|
133
|
+
* @see [Accessing iModels]($docs/learning/backend/AccessingIModels.md)
|
|
134
|
+
* @see [About IModelDb]($docs/learning/backend/IModelDb.md)
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
export declare abstract class IModelDb extends IModel {
|
|
138
|
+
private _initialized;
|
|
139
|
+
/** Keep track of open imodels to support `tryFind` for RPC purposes */
|
|
140
|
+
private static readonly _openDbs;
|
|
141
|
+
static readonly defaultLimit = 1000;
|
|
142
|
+
static readonly maxLimit = 10000;
|
|
143
|
+
readonly models: IModelDb.Models;
|
|
144
|
+
readonly elements: IModelDb.Elements;
|
|
145
|
+
readonly views: IModelDb.Views;
|
|
146
|
+
readonly tiles: IModelDb.Tiles;
|
|
147
|
+
/** @beta */
|
|
148
|
+
readonly channels: ChannelControl;
|
|
149
|
+
private _relationships?;
|
|
150
|
+
private readonly _statementCache;
|
|
151
|
+
private readonly _sqliteStatementCache;
|
|
152
|
+
private _codeSpecs?;
|
|
153
|
+
private _classMetaDataRegistry?;
|
|
154
|
+
private _jsClassMap?;
|
|
155
|
+
private _schemaMap?;
|
|
156
|
+
private _schemaContext?;
|
|
157
|
+
/** @deprecated in 5.0.0. Use [[fonts]]. */
|
|
158
|
+
protected _fontMap?: FontMap;
|
|
159
|
+
private readonly _fonts;
|
|
160
|
+
private _workspace?;
|
|
161
|
+
private readonly _snaps;
|
|
162
|
+
private static _shutdownListener;
|
|
163
|
+
/** @internal */
|
|
164
|
+
protected _locks?: LockControl;
|
|
165
|
+
/** @internal */
|
|
166
|
+
protected _codeService?: CodeService;
|
|
167
|
+
/** @alpha */
|
|
168
|
+
get codeService(): CodeService | undefined;
|
|
169
|
+
/** The [[LockControl]] that orchestrates [concurrent editing]($docs/learning/backend/ConcurrencyControl.md) of this iModel. */
|
|
170
|
+
get locks(): LockControl;
|
|
171
|
+
/** Provides methods for interacting with [font-related information]($docs/learning/backend/Fonts.md) stored in this iModel.
|
|
172
|
+
* @beta
|
|
173
|
+
*/
|
|
174
|
+
get fonts(): IModelDbFonts;
|
|
175
|
+
/**
|
|
176
|
+
* Get the [[Workspace]] for this iModel.
|
|
177
|
+
* @beta
|
|
178
|
+
*/
|
|
179
|
+
get workspace(): Workspace;
|
|
180
|
+
/** Acquire the exclusive schema lock on this iModel.
|
|
181
|
+
* @note: To acquire the schema lock, all other briefcases must first release *all* their locks. No other briefcases
|
|
182
|
+
* will be able to acquire *any* locks while the schema lock is held.
|
|
183
|
+
*/
|
|
184
|
+
acquireSchemaLock(): Promise<void>;
|
|
185
|
+
/** determine whether the schema lock is currently held for this iModel. */
|
|
186
|
+
get holdsSchemaLock(): boolean;
|
|
187
|
+
/** Event called after a changeset is applied to this IModelDb. */
|
|
188
|
+
readonly onChangesetApplied: BeEvent<() => void>;
|
|
189
|
+
/** @internal */
|
|
190
|
+
notifyChangesetApplied(): void;
|
|
191
|
+
/** @internal */
|
|
192
|
+
restartDefaultTxn(): void;
|
|
193
|
+
/** @deprecated in 5.0.0. Use [[fonts]]. */
|
|
194
|
+
get fontMap(): FontMap;
|
|
195
|
+
/** @internal */
|
|
196
|
+
clearFontMap(): void;
|
|
197
|
+
/** Check if this iModel has been opened read-only or not. */
|
|
198
|
+
get isReadonly(): boolean;
|
|
199
|
+
/** The Guid that identifies this iModel. */
|
|
200
|
+
get iModelId(): GuidString;
|
|
201
|
+
/** @internal*/
|
|
202
|
+
readonly [_nativeDb]: IModelJsNative.DgnDb;
|
|
203
|
+
/** Get the full path fileName of this iModelDb
|
|
204
|
+
* @note this member is only valid while the iModel is opened.
|
|
205
|
+
*/
|
|
206
|
+
get pathName(): LocalFileName;
|
|
207
|
+
/** Get the full path to this iModel's "watch file".
|
|
208
|
+
* A read-only briefcase opened with `watchForChanges: true` creates this file next to the briefcase file on open, if it doesn't already exist.
|
|
209
|
+
* A writable briefcase "touches" this file if it exists whenever it commits changes to the briefcase.
|
|
210
|
+
* The read-only briefcase can use a file watcher to react when the writable briefcase makes changes to the briefcase.
|
|
211
|
+
* This is more reliable than watching the sqlite WAL file.
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
get watchFilePathName(): LocalFileName;
|
|
215
|
+
/** @internal */
|
|
216
|
+
protected constructor(args: {
|
|
217
|
+
nativeDb: IModelJsNative.DgnDb;
|
|
218
|
+
key: string;
|
|
219
|
+
changeset?: ChangesetIdWithIndex;
|
|
220
|
+
});
|
|
221
|
+
/**
|
|
222
|
+
* Attach an iModel file to this connection and load and register its schemas.
|
|
223
|
+
* @note There are some reserve tablespace names that cannot be used. They are 'main', 'schema_sync_db', 'ecchange' & 'temp'
|
|
224
|
+
* @param fileName IModel file name
|
|
225
|
+
* @param alias identifier for the attached file. This identifer is used to access schema from the attached file. e.g. if alias is 'abc' then schema can be accessed using 'abc.MySchema.MyClass'
|
|
226
|
+
*
|
|
227
|
+
* *Example:*
|
|
228
|
+
* ``` ts
|
|
229
|
+
* [[include:IModelDb_attachDb.code]]
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
attachDb(fileName: string, alias: string): void;
|
|
233
|
+
/**
|
|
234
|
+
* Detach the attached file from this connection. The attached file is closed and its schemas are unregistered.
|
|
235
|
+
* @note There are some reserve tablespace names that cannot be used. They are 'main', 'schema_sync_db', 'ecchange' & 'temp'
|
|
236
|
+
* @param alias identifer that was used in the call to [[attachDb]]
|
|
237
|
+
*
|
|
238
|
+
* *Example:*
|
|
239
|
+
* ``` ts
|
|
240
|
+
* [[include:IModelDb_attachDb.code]]
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
detachDb(alias: string): void;
|
|
244
|
+
/** Close this IModel, if it is currently open, and save changes if it was opened in ReadWrite mode. */
|
|
245
|
+
close(): void;
|
|
246
|
+
/** @internal */
|
|
247
|
+
refreshContainerForRpc(_userAccessToken: AccessToken): Promise<void>;
|
|
248
|
+
/** Event called when the iModel is about to be closed. */
|
|
249
|
+
readonly onBeforeClose: BeEvent<() => void>;
|
|
250
|
+
/**
|
|
251
|
+
* Called by derived classes before closing the connection
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
254
|
+
protected beforeClose(): void;
|
|
255
|
+
/** @internal */
|
|
256
|
+
protected initializeIModelDb(): void;
|
|
257
|
+
/** Returns true if this is a BriefcaseDb
|
|
258
|
+
* @see [[BriefcaseDb.open]]
|
|
259
|
+
*/
|
|
260
|
+
get isBriefcase(): boolean;
|
|
261
|
+
/** Type guard for instanceof [[BriefcaseDb]] */
|
|
262
|
+
isBriefcaseDb(): this is BriefcaseDb;
|
|
263
|
+
/** Returns true if this is a SnapshotDb
|
|
264
|
+
* @see [[SnapshotDb.open]]
|
|
265
|
+
*/
|
|
266
|
+
get isSnapshot(): boolean;
|
|
267
|
+
/** Type guard for instanceof [[SnapshotDb]] */
|
|
268
|
+
isSnapshotDb(): this is SnapshotDb;
|
|
269
|
+
/** Returns true if this is a *standalone* iModel
|
|
270
|
+
* @see [[StandaloneDb.open]]
|
|
271
|
+
* @internal
|
|
272
|
+
*/
|
|
273
|
+
get isStandalone(): boolean;
|
|
274
|
+
/** Type guard for instanceof [[StandaloneDb]]. */
|
|
275
|
+
isStandaloneDb(): this is StandaloneDb;
|
|
276
|
+
/** Return `true` if the underlying nativeDb is open and valid.
|
|
277
|
+
* @internal
|
|
278
|
+
*/
|
|
279
|
+
get isOpen(): boolean;
|
|
280
|
+
/** Get the briefcase Id of this iModel */
|
|
281
|
+
getBriefcaseId(): BriefcaseId;
|
|
282
|
+
/**
|
|
283
|
+
* Use a prepared ECSQL statement, potentially from the statement cache. If the requested statement doesn't exist
|
|
284
|
+
* in the statement cache, a new statement is prepared. After the callback completes, the statement is reset and saved
|
|
285
|
+
* in the statement cache so it can be reused in the future. Use this method for ECSQL statements that will be
|
|
286
|
+
* reused often and are expensive to prepare. The statement cache holds the most recently used statements, discarding
|
|
287
|
+
* the oldest statements as it fills. For statements you don't intend to reuse, instead use [[withStatement]].
|
|
288
|
+
* @param sql The SQLite SQL statement to execute
|
|
289
|
+
* @param callback the callback to invoke on the prepared statement
|
|
290
|
+
* @param logErrors Determines if error will be logged if statement fail to prepare
|
|
291
|
+
* @returns the value returned by `callback`.
|
|
292
|
+
* @see [[withStatement]]
|
|
293
|
+
* @public
|
|
294
|
+
*/
|
|
295
|
+
withPreparedStatement<T>(ecsql: string, callback: (stmt: ECSqlStatement) => T, logErrors?: boolean): T;
|
|
296
|
+
/**
|
|
297
|
+
* Prepared and execute a callback on an ECSQL statement. After the callback completes the statement is disposed.
|
|
298
|
+
* Use this method for ECSQL statements are either not expected to be reused, or are not expensive to prepare.
|
|
299
|
+
* For statements that will be reused often, instead use [[withPreparedStatement]].
|
|
300
|
+
* @param sql The SQLite SQL statement to execute
|
|
301
|
+
* @param callback the callback to invoke on the prepared statement
|
|
302
|
+
* @param logErrors Determines if error will be logged if statement fail to prepare
|
|
303
|
+
* @returns the value returned by `callback`.
|
|
304
|
+
* @see [[withPreparedStatement]]
|
|
305
|
+
* @public
|
|
306
|
+
*/
|
|
307
|
+
withStatement<T>(ecsql: string, callback: (stmt: ECSqlStatement) => T, logErrors?: boolean): T;
|
|
308
|
+
/** Allow to execute query and read results along with meta data. The result are streamed.
|
|
309
|
+
*
|
|
310
|
+
* See also:
|
|
311
|
+
* - [ECSQL Overview]($docs/learning/backend/ExecutingECSQL)
|
|
312
|
+
* - [Code Examples]($docs/learning/backend/ECSQLCodeExamples)
|
|
313
|
+
* - [ECSQL Row Format]($docs/learning/ECSQLRowFormat)
|
|
314
|
+
*
|
|
315
|
+
* @param params The values to bind to the parameters (if the ECSQL has any).
|
|
316
|
+
* @param config Allow to specify certain flags which control how query is executed.
|
|
317
|
+
* @returns Returns an [ECSqlReader]($common) which helps iterate over the result set and also give access to metadata.
|
|
318
|
+
* @public
|
|
319
|
+
* */
|
|
320
|
+
createQueryReader(ecsql: string, params?: QueryBinder, config?: QueryOptions): ECSqlReader;
|
|
321
|
+
/**
|
|
322
|
+
* Use a prepared SQL statement, potentially from the statement cache. If the requested statement doesn't exist
|
|
323
|
+
* in the statement cache, a new statement is prepared. After the callback completes, the statement is reset and saved
|
|
324
|
+
* in the statement cache so it can be reused in the future. Use this method for SQL statements that will be
|
|
325
|
+
* reused often and are expensive to prepare. The statement cache holds the most recently used statements, discarding
|
|
326
|
+
* the oldest statements as it fills. For statements you don't intend to reuse, instead use [[withSqliteStatement]].
|
|
327
|
+
* @param sql The SQLite SQL statement to execute
|
|
328
|
+
* @param callback the callback to invoke on the prepared statement
|
|
329
|
+
* @param logErrors Determine if errors are logged or not
|
|
330
|
+
* @returns the value returned by `callback`.
|
|
331
|
+
* @see [[withPreparedStatement]]
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
withPreparedSqliteStatement<T>(sql: string, callback: (stmt: SqliteStatement) => T, logErrors?: boolean): T;
|
|
335
|
+
/**
|
|
336
|
+
* Prepared and execute a callback on a SQL statement. After the callback completes the statement is disposed.
|
|
337
|
+
* Use this method for SQL statements are either not expected to be reused, or are not expensive to prepare.
|
|
338
|
+
* For statements that will be reused often, instead use [[withPreparedSqliteStatement]].
|
|
339
|
+
* @param sql The SQLite SQL statement to execute
|
|
340
|
+
* @param callback the callback to invoke on the prepared statement
|
|
341
|
+
* @param logErrors Determine if errors are logged or not
|
|
342
|
+
* @returns the value returned by `callback`.
|
|
343
|
+
* @public
|
|
344
|
+
*/
|
|
345
|
+
withSqliteStatement<T>(sql: string, callback: (stmt: SqliteStatement) => T, logErrors?: boolean): T;
|
|
346
|
+
/** Prepare an SQL statement.
|
|
347
|
+
* @param sql The SQL statement to prepare
|
|
348
|
+
* @throws [[IModelError]] if there is a problem preparing the statement.
|
|
349
|
+
* @internal
|
|
350
|
+
*/
|
|
351
|
+
prepareSqliteStatement(sql: string, logErrors?: boolean): SqliteStatement;
|
|
352
|
+
/**
|
|
353
|
+
* queries the BisCore.SubCategory table for entries that are children of used spatial categories and 3D elements.
|
|
354
|
+
* @returns array of SubCategoryResultRow
|
|
355
|
+
* @internal
|
|
356
|
+
*/
|
|
357
|
+
queryAllUsedSpatialSubCategories(): Promise<SubCategoryResultRow[]>;
|
|
358
|
+
/**
|
|
359
|
+
* queries the BisCore.SubCategory table for the entries that are children of the passed categoryIds.
|
|
360
|
+
* @param categoryIds categoryIds to query
|
|
361
|
+
* @returns array of SubCategoryResultRow
|
|
362
|
+
* @internal
|
|
363
|
+
*/
|
|
364
|
+
querySubCategories(categoryIds: Iterable<Id64String>): Promise<SubCategoryResultRow[]>;
|
|
365
|
+
/** Query for a set of entity ids, given an EntityQueryParams
|
|
366
|
+
* @param params The query parameters. The `limit` and `offset` members should be used to page results.
|
|
367
|
+
* @returns an Id64Set with results of query
|
|
368
|
+
* @throws [[IModelError]] if the generated statement is invalid or [IModelDb.maxLimit]($backend) exceeded when collecting ids.
|
|
369
|
+
*
|
|
370
|
+
* *Example:*
|
|
371
|
+
* ``` ts
|
|
372
|
+
* [[include:ECSQL-backend-queries.select-element-by-code-value-using-queryEntityIds]]
|
|
373
|
+
* ```
|
|
374
|
+
*/
|
|
375
|
+
queryEntityIds(params: EntityQueryParams): Id64Set;
|
|
376
|
+
/** Clear all in-memory caches held in this IModelDb. */
|
|
377
|
+
clearCaches(): void;
|
|
378
|
+
/** Update the project extents for this iModel.
|
|
379
|
+
* <p><em>Example:</em>
|
|
380
|
+
* ``` ts
|
|
381
|
+
* [[include:IModelDb.updateProjectExtents]]
|
|
382
|
+
* ```
|
|
383
|
+
*/
|
|
384
|
+
updateProjectExtents(newExtents: AxisAlignedBox3d): void;
|
|
385
|
+
/** Compute an appropriate project extents for this iModel based on the ranges of all spatial elements.
|
|
386
|
+
* Typically, the result is simply the union of the ranges of all spatial elements. However, the algorithm also detects "outlier elements",
|
|
387
|
+
* whose placements locate them so far from the rest of the spatial geometry that they are considered statistically insignificant. The
|
|
388
|
+
* range of an outlier element does not contribute to the computed extents.
|
|
389
|
+
* @param options Specifies the level of detail desired in the return value.
|
|
390
|
+
* @returns the computed extents.
|
|
391
|
+
* @note This method does not modify the IModel's stored project extents. @see [[updateProjectExtents]].
|
|
392
|
+
*/
|
|
393
|
+
computeProjectExtents(options?: ComputeProjectExtentsOptions): ComputedProjectExtents;
|
|
394
|
+
/** Update the [EcefLocation]($docs/learning/glossary#eceflocation) of this iModel. */
|
|
395
|
+
updateEcefLocation(ecef: EcefLocation): void;
|
|
396
|
+
/** Update the IModelProps of this iModel in the database. */
|
|
397
|
+
updateIModelProps(): void;
|
|
398
|
+
/** Commit unsaved changes in memory as a Txn to this iModelDb.
|
|
399
|
+
* @param description Optional description of the changes
|
|
400
|
+
* @throws [[IModelError]] if there is a problem saving changes or if there are pending, un-processed lock or code requests.
|
|
401
|
+
* @note This will not push changes to the iModelHub.
|
|
402
|
+
* @see [[IModelDb.pushChanges]] to push changes to the iModelHub.
|
|
403
|
+
*/
|
|
404
|
+
saveChanges(description?: string): void;
|
|
405
|
+
/** Abandon changes in memory that have not been saved as a Txn to this iModelDb.
|
|
406
|
+
* @note This will not delete Txns that have already been saved, even if they have not yet been pushed.
|
|
407
|
+
*/
|
|
408
|
+
abandonChanges(): void;
|
|
409
|
+
/**
|
|
410
|
+
* Save all changes and perform a [checkpoint](https://www.sqlite.org/c3ref/wal_checkpoint_v2.html) on this IModelDb.
|
|
411
|
+
* This ensures that all changes to the database since it was opened are saved to its file and the WAL file is truncated.
|
|
412
|
+
* @note Checkpoint automatically happens when IModelDbs are closed. However, the checkpoint
|
|
413
|
+
* operation itself can take some time. It may be useful to call this method prior to closing so that the checkpoint "penalty" is paid earlier.
|
|
414
|
+
* @note Another use for this function is to permit the file to be copied while it is open for write. iModel files should
|
|
415
|
+
* rarely be copied, and even less so while they're opened. But this scenario is sometimes encountered for tests.
|
|
416
|
+
*/
|
|
417
|
+
performCheckpoint(): void;
|
|
418
|
+
/** @internal
|
|
419
|
+
* @deprecated in 4.8. Use `txns.reverseTxns`.
|
|
420
|
+
*/
|
|
421
|
+
reverseTxns(numOperations: number): IModelStatus;
|
|
422
|
+
/** @internal */
|
|
423
|
+
reinstateTxn(): IModelStatus;
|
|
424
|
+
/** @internal */
|
|
425
|
+
restartTxnSession(): void;
|
|
426
|
+
/** Import an ECSchema. On success, the schema definition is stored in the iModel.
|
|
427
|
+
* This method is asynchronous (must be awaited) because, in the case where this IModelDb is a briefcase, this method first obtains the schema lock from the iModel server.
|
|
428
|
+
* You must import a schema into an iModel before you can insert instances of the classes in that schema. See [[Element]]
|
|
429
|
+
* @param schemaFileName array of Full paths to ECSchema.xml files to be imported.
|
|
430
|
+
* @param {SchemaImportOptions} options - options during schema import.
|
|
431
|
+
* @throws [[IModelError]] if the schema lock cannot be obtained or there is a problem importing the schema.
|
|
432
|
+
* @note Changes are saved if importSchemas is successful and abandoned if not successful.
|
|
433
|
+
* - You can use NativeLoggerCategory to turn on the native logs. You can also control [what exactly is logged by the loggers](https://www.itwinjs.org/learning/common/logging/#controlling-what-is-logged).
|
|
434
|
+
* - See [Schema Versioning]($docs/bis/guide/schema-evolution/schema-versioning-and-generations.md) for more information on acceptable changes to schemas.
|
|
435
|
+
* @see querySchemaVersion
|
|
436
|
+
*/
|
|
437
|
+
importSchemas(schemaFileNames: LocalFileName[], options?: SchemaImportOptions): Promise<void>;
|
|
438
|
+
/** Import ECSchema(s) serialized to XML. On success, the schema definition is stored in the iModel.
|
|
439
|
+
* This method is asynchronous (must be awaited) because, in the case where this IModelDb is a briefcase, this method first obtains the schema lock from the iModel server.
|
|
440
|
+
* You must import a schema into an iModel before you can insert instances of the classes in that schema. See [[Element]]
|
|
441
|
+
* @param serializedXmlSchemas The xml string(s) created from a serialized ECSchema.
|
|
442
|
+
* @throws [[IModelError]] if the schema lock cannot be obtained or there is a problem importing the schema.
|
|
443
|
+
* @note Changes are saved if importSchemaStrings is successful and abandoned if not successful.
|
|
444
|
+
* @see querySchemaVersion
|
|
445
|
+
* @alpha
|
|
446
|
+
*/
|
|
447
|
+
importSchemaStrings(serializedXmlSchemas: string[]): Promise<void>;
|
|
448
|
+
/** Find an opened instance of any subclass of IModelDb, by filename
|
|
449
|
+
* @note this method returns an IModelDb if the filename is open for *any* subclass of IModelDb
|
|
450
|
+
*/
|
|
451
|
+
static findByFilename(fileName: LocalFileName): IModelDb | undefined;
|
|
452
|
+
/** Find an open IModelDb by its key.
|
|
453
|
+
* @note This method is mainly for use by RPC implementations.
|
|
454
|
+
* @throws [[IModelNotFoundResponse]] if an open IModelDb matching the key is not found.
|
|
455
|
+
* @see [IModel.key]($common)
|
|
456
|
+
*/
|
|
457
|
+
static findByKey(key: string): IModelDb;
|
|
458
|
+
/** Attempt to find an open IModelDb by key.
|
|
459
|
+
* @returns The matching IModelDb or `undefined`.
|
|
460
|
+
*/
|
|
461
|
+
static tryFindByKey(key: string): IModelDb | undefined;
|
|
462
|
+
/** @internal */
|
|
463
|
+
static openDgnDb(file: {
|
|
464
|
+
path: LocalFileName;
|
|
465
|
+
key?: string;
|
|
466
|
+
}, openMode: OpenMode, upgradeOptions?: UpgradeOptions, props?: SnapshotOpenOptions & CloudContainerArgs & OpenSqliteArgs): IModelJsNative.DgnDb;
|
|
467
|
+
/**
|
|
468
|
+
* Determines if the schemas in the Db must or can be upgraded by comparing them with those included in the
|
|
469
|
+
* current version of the software.
|
|
470
|
+
* @param filePath Full name of the briefcase including path
|
|
471
|
+
* @param forReadWrite Pass true if validating for read-write scenarios - note that the schema version requirements
|
|
472
|
+
* for opening the DgnDb read-write is more stringent than when opening the database read-only
|
|
473
|
+
* @throws [[IModelError]] If the Db was in an invalid state and that causes a problem with validating schemas
|
|
474
|
+
* @see [[BriefcaseDb.upgradeSchemas]] or [[StandaloneDb.upgradeSchemas]]
|
|
475
|
+
* @see ($docs/learning/backend/IModelDb.md#upgrading-schemas-in-an-imodel)
|
|
476
|
+
*/
|
|
477
|
+
static validateSchemas(filePath: LocalFileName, forReadWrite: boolean): SchemaState;
|
|
478
|
+
/** The registry of entity metadata for this iModel.
|
|
479
|
+
* @internal
|
|
480
|
+
* @deprecated in 5.0. Please use `schemaContext` from the `iModel` instead.
|
|
481
|
+
*
|
|
482
|
+
* @example
|
|
483
|
+
* ```typescript
|
|
484
|
+
* // Current usage:
|
|
485
|
+
* const classMetaData: EntityMetaData | undefined = iModel.classMetaDataRegistry.find("SchemaName:ClassName");
|
|
486
|
+
*
|
|
487
|
+
* // Replacement:
|
|
488
|
+
* const metaData: EntityClass | undefined = imodel.schemaContext.getSchemaItemSync("SchemaName.ClassName", EntityClass);
|
|
489
|
+
* ```
|
|
490
|
+
*/
|
|
491
|
+
get classMetaDataRegistry(): MetaDataRegistry;
|
|
492
|
+
/**
|
|
493
|
+
* Allows registering js classes mapped to ECClasses
|
|
494
|
+
*/
|
|
495
|
+
get jsClassMap(): EntityJsClassMap;
|
|
496
|
+
/**
|
|
497
|
+
* Allows locally registering a schema for this imodel, in constrast to [Schemas.registerSchema] which is a global operation
|
|
498
|
+
*/
|
|
499
|
+
get schemaMap(): SchemaMap;
|
|
500
|
+
/**
|
|
501
|
+
* Gets the context that allows accessing the metadata (ecschema-metadata package) of this iModel
|
|
502
|
+
* @beta
|
|
503
|
+
*/
|
|
504
|
+
get schemaContext(): SchemaContext;
|
|
505
|
+
/** Get the linkTableRelationships for this IModel */
|
|
506
|
+
get relationships(): Relationships;
|
|
507
|
+
/** Get the CodeSpecs in this IModel. */
|
|
508
|
+
get codeSpecs(): CodeSpecs;
|
|
509
|
+
/** Prepare an ECSQL statement.
|
|
510
|
+
* @param sql The ECSQL statement to prepare
|
|
511
|
+
* @param logErrors Determines if error will be logged if statement fail to prepare
|
|
512
|
+
* @throws [[IModelError]] if there is a problem preparing the statement.
|
|
513
|
+
*/
|
|
514
|
+
prepareStatement(sql: string, logErrors?: boolean): ECSqlStatement;
|
|
515
|
+
/** Prepare an ECSQL statement.
|
|
516
|
+
* @param sql The ECSQL statement to prepare
|
|
517
|
+
* @returns `undefined` if there is a problem preparing the statement.
|
|
518
|
+
*/
|
|
519
|
+
tryPrepareStatement(sql: string): ECSqlStatement | undefined;
|
|
520
|
+
/** Construct an entity (Element or Model) from an iModel.
|
|
521
|
+
* @throws [[IModelError]] if the entity cannot be constructed.
|
|
522
|
+
*/
|
|
523
|
+
constructEntity<T extends Entity, P extends EntityProps = EntityProps>(props: P): T;
|
|
524
|
+
/** Get the JavaScript class that handles a given entity class. */
|
|
525
|
+
getJsClass<T extends typeof Entity>(classFullName: string): T;
|
|
526
|
+
/** Get metadata for a class. This method will load the metadata from the iModel into the cache as a side-effect, if necessary.
|
|
527
|
+
* @throws [[IModelError]] if the metadata cannot be found nor loaded.
|
|
528
|
+
* @deprecated in 5.0. Please use `getSchemaItem` from `SchemaContext` class instead.
|
|
529
|
+
*
|
|
530
|
+
* @example
|
|
531
|
+
* * ```typescript
|
|
532
|
+
* // Current usage:
|
|
533
|
+
* const metaData: EntityMetaData = imodel.getMetaData("SchemaName:ClassName");
|
|
534
|
+
*
|
|
535
|
+
* // Replacement:
|
|
536
|
+
* const metaData: EntityClass | undefined = imodel.schemaContext.getSchemaItemSync("SchemaName", "ClassName", EntityClass);
|
|
537
|
+
* ```
|
|
538
|
+
*/
|
|
539
|
+
getMetaData(classFullName: string): EntityMetaData;
|
|
540
|
+
/** Identical to [[getMetaData]], except it returns `undefined` instead of throwing an error if the metadata cannot be found nor loaded.
|
|
541
|
+
* @deprecated in 5.0. Please use `getSchemaItem` from `SchemaContext` class instead.
|
|
542
|
+
*
|
|
543
|
+
* @example
|
|
544
|
+
* * ```typescript
|
|
545
|
+
* // Current usage:
|
|
546
|
+
* const metaData: EntityMetaData | undefined = imodel.tryGetMetaData("SchemaName:ClassName");
|
|
547
|
+
*
|
|
548
|
+
* // Replacement:
|
|
549
|
+
* const metaData: EntityClass | undefined = imodel.schemaContext.getSchemaItemSync("SchemaName.ClassName", EntityClass);
|
|
550
|
+
* ```
|
|
551
|
+
*/
|
|
552
|
+
tryGetMetaData(classFullName: string): EntityMetaData | undefined;
|
|
553
|
+
/** Invoke a callback on each property of the specified class, optionally including superclass properties.
|
|
554
|
+
* @param iModel The IModel that contains the schema
|
|
555
|
+
* @param classFullName The full class name to load the metadata, if necessary
|
|
556
|
+
* @param wantSuper If true, superclass properties will also be processed
|
|
557
|
+
* @param func The callback to be invoked on each property
|
|
558
|
+
* @param includeCustom If true (default), include custom-handled properties in the iteration. Otherwise, skip custom-handled properties.
|
|
559
|
+
* @note Custom-handled properties are core properties that have behavior enforced by C++ handlers.
|
|
560
|
+
* @deprecated in 5.0. Please use `forEachProperty` instead.
|
|
561
|
+
*
|
|
562
|
+
* @example
|
|
563
|
+
* ```typescript
|
|
564
|
+
* // Current usage:
|
|
565
|
+
* IModelDb.forEachMetaData(imodel, "BisCore:Element", true, (name: string, propMetaData: PropertyMetaData) => {
|
|
566
|
+
* console.log(`Property name: ${name}, Property type: ${propMetaData.primitiveType}`);
|
|
567
|
+
* }, false);
|
|
568
|
+
*
|
|
569
|
+
* // Replacement:
|
|
570
|
+
* await IModelDb.forEachProperty(imodel, "TestDomain.TestDomainClass", true, (propName: string, property: Property) => {
|
|
571
|
+
* console.log(`Property name: ${propName}, Property type: ${property.propertyType}`);
|
|
572
|
+
* }, false);
|
|
573
|
+
* ```
|
|
574
|
+
*/
|
|
575
|
+
static forEachMetaData(iModel: IModelDb, classFullName: string, wantSuper: boolean, func: PropertyCallback, includeCustom?: boolean): void;
|
|
576
|
+
/** Invoke a callback on each property of the specified class, optionally including superclass properties.
|
|
577
|
+
* @param classFullName The full class name to load the metadata, if necessary
|
|
578
|
+
* @param wantSuper If true, superclass properties will also be processed
|
|
579
|
+
* @param func The callback to be invoked on each property
|
|
580
|
+
* @param includeCustom If true (default), include custom-handled properties in the iteration. Otherwise, skip custom-handled properties.
|
|
581
|
+
* @note Custom-handled properties are core properties that have behavior enforced by C++ handlers.
|
|
582
|
+
* @deprecated in 5.0. Use `forEachProperty` from `SchemaContext` class instead.
|
|
583
|
+
*
|
|
584
|
+
* @example
|
|
585
|
+
* ```typescript
|
|
586
|
+
* // Current usage:
|
|
587
|
+
* iModel.forEachMetaData("BisCore:Element", true, (name: string, propMetaData: PropertyMetaData) => {
|
|
588
|
+
* console.log(`Property name: ${name}, Property type: ${propMetaData.primitiveType}`);
|
|
589
|
+
* });
|
|
590
|
+
*
|
|
591
|
+
* // Replacement:
|
|
592
|
+
* imodel.schemaContext.forEachProperty("BisCore:Element", true, (propName: string, property: Property) => {
|
|
593
|
+
* console.log(`Property name: ${propName}, Property type: ${property.propertyType}`);
|
|
594
|
+
* });
|
|
595
|
+
* ```
|
|
596
|
+
*/
|
|
597
|
+
forEachMetaData(classFullName: string, wantSuper: boolean, func: PropertyCallback, includeCustom?: boolean): void;
|
|
598
|
+
/**
|
|
599
|
+
* @internal
|
|
600
|
+
* @deprecated in 5.0. Please use `schemaContext` from `iModel` instead to get metadata.
|
|
601
|
+
*/
|
|
602
|
+
private loadMetaData;
|
|
603
|
+
/** Returns the full schema for the input name.
|
|
604
|
+
* @param name The name of the schema e.g. 'BisCore'
|
|
605
|
+
* @returns The SchemaProps for the requested schema
|
|
606
|
+
* @throws if the schema can not be found or loaded.
|
|
607
|
+
*/
|
|
608
|
+
getSchemaProps(name: string): ECSchemaProps;
|
|
609
|
+
/** Query if this iModel contains the definition of the specified class.
|
|
610
|
+
* @param classFullName The full name of the class, for example, SomeSchema:SomeClass
|
|
611
|
+
* @returns true if the iModel contains the class definition or false if not.
|
|
612
|
+
* @see querySchemaVersion
|
|
613
|
+
* @see importSchema
|
|
614
|
+
*/
|
|
615
|
+
containsClass(classFullName: string): boolean;
|
|
616
|
+
/** Query for a schema of the specified name in this iModel.
|
|
617
|
+
* @returns The schema version as a semver-compatible string or `undefined` if the schema has not been imported.
|
|
618
|
+
*/
|
|
619
|
+
querySchemaVersion(schemaName: string): string | undefined;
|
|
620
|
+
/** Retrieve a named texture image from this iModel, as a TextureData.
|
|
621
|
+
* @param props the texture load properties which must include the name of the texture to load
|
|
622
|
+
* @returns the TextureData or undefined if the texture image is not present.
|
|
623
|
+
* @alpha
|
|
624
|
+
*/
|
|
625
|
+
queryTextureData(props: TextureLoadProps): Promise<TextureData | undefined>;
|
|
626
|
+
/** Query a "file property" from this iModel, as a string.
|
|
627
|
+
* @returns the property string or undefined if the property is not present.
|
|
628
|
+
*/
|
|
629
|
+
queryFilePropertyString(prop: FilePropertyProps): string | undefined;
|
|
630
|
+
/** Query a "file property" from this iModel, as a blob.
|
|
631
|
+
* @returns the property blob or undefined if the property is not present.
|
|
632
|
+
*/
|
|
633
|
+
queryFilePropertyBlob(prop: FilePropertyProps): Uint8Array | undefined;
|
|
634
|
+
/** Save a "file property" to this iModel
|
|
635
|
+
* @param prop the FilePropertyProps that describes the new property
|
|
636
|
+
* @param value either a string or a blob to save as the file property
|
|
637
|
+
*/
|
|
638
|
+
saveFileProperty(prop: FilePropertyProps, strValue: string | undefined, blobVal?: Uint8Array): void;
|
|
639
|
+
/** delete a "file property" from this iModel
|
|
640
|
+
* @param prop the FilePropertyProps that describes the property
|
|
641
|
+
*/
|
|
642
|
+
deleteFileProperty(prop: FilePropertyProps): void;
|
|
643
|
+
/** Query for the next available major id for a "file property" from this iModel.
|
|
644
|
+
* @param prop the FilePropertyProps that describes the property
|
|
645
|
+
* @returns the next available (that is, an unused) id for prop. If none are present, will return 0.
|
|
646
|
+
*/
|
|
647
|
+
queryNextAvailableFileProperty(prop: FilePropertyProps): number;
|
|
648
|
+
/** @internal */
|
|
649
|
+
requestSnap(sessionId: string, props: SnapRequestProps): Promise<SnapResponseProps>;
|
|
650
|
+
/** Cancel a previously requested snap.
|
|
651
|
+
* @internal
|
|
652
|
+
*/
|
|
653
|
+
cancelSnap(sessionId: string): void;
|
|
654
|
+
/** Get the clip containment status for the supplied elements. */
|
|
655
|
+
getGeometryContainment(props: GeometryContainmentRequestProps): Promise<GeometryContainmentResponseProps>;
|
|
656
|
+
/** Get the mass properties for the supplied elements. */
|
|
657
|
+
getMassProperties(props: MassPropertiesRequestProps): Promise<MassPropertiesResponseProps>;
|
|
658
|
+
/** Get the IModel coordinate corresponding to each GeoCoordinate point in the input */
|
|
659
|
+
getIModelCoordinatesFromGeoCoordinates(props: IModelCoordinatesRequestProps): Promise<IModelCoordinatesResponseProps>;
|
|
660
|
+
/** Get the GeoCoordinate (longitude, latitude, elevation) corresponding to each IModel Coordinate point in the input */
|
|
661
|
+
getGeoCoordinatesFromIModelCoordinates(props: GeoCoordinatesRequestProps): Promise<GeoCoordinatesResponseProps>;
|
|
662
|
+
/** Export meshes suitable for graphics APIs from arbitrary geometry in elements in this IModelDb.
|
|
663
|
+
* * Requests can be slow when processing many elements so it is expected that this function be used on a dedicated backend,
|
|
664
|
+
* or that shared backends export a limited number of elements at a time.
|
|
665
|
+
* * Vertices are exported in the IModelDb's world coordinate system, which is right-handed with Z pointing up.
|
|
666
|
+
* * The results of changing [ExportGraphicsOptions]($core-backend) during the [ExportGraphicsOptions.onGraphics]($core-backend) callback are not defined.
|
|
667
|
+
*
|
|
668
|
+
* Example that prints the mesh for element 1 to stdout in [OBJ format](https://en.wikipedia.org/wiki/Wavefront_.obj_file)
|
|
669
|
+
* ```ts
|
|
670
|
+
* const onGraphics: ExportGraphicsFunction = (info: ExportGraphicsInfo) => {
|
|
671
|
+
* const mesh: ExportGraphicsMesh = info.mesh;
|
|
672
|
+
* for (let i = 0; i < mesh.points.length; i += 3) {
|
|
673
|
+
* process.stdout.write(`v ${mesh.points[i]} ${mesh.points[i + 1]} ${mesh.points[i + 2]}\n`);
|
|
674
|
+
* process.stdout.write(`vn ${mesh.normals[i]} ${mesh.normals[i + 1]} ${mesh.normals[i + 2]}\n`);
|
|
675
|
+
* }
|
|
676
|
+
*
|
|
677
|
+
* for (let i = 0; i < mesh.params.length; i += 2) {
|
|
678
|
+
* process.stdout.write(`vt ${mesh.params[i]} ${mesh.params[i + 1]}\n`);
|
|
679
|
+
* }
|
|
680
|
+
*
|
|
681
|
+
* for (let i = 0; i < mesh.indices.length; i += 3) {
|
|
682
|
+
* const p1 = mesh.indices[i];
|
|
683
|
+
* const p2 = mesh.indices[i + 1];
|
|
684
|
+
* const p3 = mesh.indices[i + 2];
|
|
685
|
+
* process.stdout.write(`f ${p1}/${p1}/${p1} ${p2}/${p2}/${p2} ${p3}/${p3}/${p3}\n`);
|
|
686
|
+
* }
|
|
687
|
+
* };
|
|
688
|
+
*
|
|
689
|
+
* iModel.exportGraphics(({ onGraphics, elementIdArray: ["0x1"] }));
|
|
690
|
+
* ```
|
|
691
|
+
* @returns 0 if successful, status otherwise
|
|
692
|
+
* @public
|
|
693
|
+
*/
|
|
694
|
+
exportGraphics(exportProps: ExportGraphicsOptions): DbResult;
|
|
695
|
+
/**
|
|
696
|
+
* Exports meshes suitable for graphics APIs from a specified [GeometryPart]($core-backend)
|
|
697
|
+
* in this IModelDb.
|
|
698
|
+
* The expected use case is to call [IModelDb.exportGraphics]($core-backend) and supply the
|
|
699
|
+
* optional partInstanceArray argument, then call this function for each unique GeometryPart from
|
|
700
|
+
* that list.
|
|
701
|
+
* * The results of changing [ExportPartGraphicsOptions]($core-backend) during the
|
|
702
|
+
* [ExportPartGraphicsOptions.onPartGraphics]($core-backend) callback are not defined.
|
|
703
|
+
* * See export-gltf under test-apps in the iTwin.js monorepo for a working reference.
|
|
704
|
+
* @returns 0 is successful, status otherwise
|
|
705
|
+
* @public
|
|
706
|
+
*/
|
|
707
|
+
exportPartGraphics(exportProps: ExportPartGraphicsOptions): DbResult;
|
|
708
|
+
/** Request geometry stream information from an element in binary format instead of json.
|
|
709
|
+
* @returns IModelStatus.Success if successful
|
|
710
|
+
* @beta
|
|
711
|
+
*/
|
|
712
|
+
elementGeometryRequest(requestProps: ElementGeometryRequest): IModelStatus;
|
|
713
|
+
/** Request the creation of a backend geometry cache for the specified geometric element.
|
|
714
|
+
* @returns ElementGeometryCacheResponseProps
|
|
715
|
+
* @beta
|
|
716
|
+
*/
|
|
717
|
+
updateElementGeometryCache(requestProps: ElementGeometryCacheRequestProps): Promise<ElementGeometryCacheResponseProps>;
|
|
718
|
+
/** Request operation using the backend geometry cache populated by first calling elementGeometryRequest.
|
|
719
|
+
* @returns SUCCESS if requested operation could be applied.
|
|
720
|
+
* @beta
|
|
721
|
+
*/
|
|
722
|
+
elementGeometryCacheOperation(requestProps: ElementGeometryCacheOperationRequestProps): BentleyStatus;
|
|
723
|
+
/** Create brep geometry for inclusion in an element's geometry stream.
|
|
724
|
+
* @returns IModelStatus.Success if successful
|
|
725
|
+
* @throws [[IModelError]] to report issues with input geometry or parameters
|
|
726
|
+
* @alpha
|
|
727
|
+
*/
|
|
728
|
+
createBRepGeometry(createProps: BRepGeometryCreate): IModelStatus;
|
|
729
|
+
/** Generate graphics for an element or geometry stream.
|
|
730
|
+
* @see [readElementGraphics]($frontend) to convert the result to a [RenderGraphic]($frontend) for display.
|
|
731
|
+
*/
|
|
732
|
+
generateElementGraphics(request: ElementGraphicsRequestProps): Promise<Uint8Array | undefined>;
|
|
733
|
+
private static _settingPropNamespace;
|
|
734
|
+
/** Save a `SettingDictionary` in this iModel that will be loaded into [[workspace.settings]] every time this iModel is opened in future sessions.
|
|
735
|
+
* @param name The name for the SettingDictionary. If a dictionary by that name already exists in the iModel, its value is replaced.
|
|
736
|
+
* @param dict The SettingDictionary object to stringify and save.
|
|
737
|
+
* @note All saved `SettingDictionary`s are loaded into [[workspace.settings]] every time an iModel is opened.
|
|
738
|
+
* @beta
|
|
739
|
+
*/
|
|
740
|
+
saveSettingDictionary(name: string, dict: SettingsContainer): void;
|
|
741
|
+
/** Delete a SettingDictionary, previously added with [[saveSettingDictionary]], from this iModel.
|
|
742
|
+
* @param name The name of the dictionary to delete.
|
|
743
|
+
* @beta
|
|
744
|
+
*/
|
|
745
|
+
deleteSettingDictionary(name: string): void;
|
|
746
|
+
/** Load all setting dictionaries in this iModel into `this.workspace.settings` */
|
|
747
|
+
private loadIModelSettings;
|
|
748
|
+
/** @internal */
|
|
749
|
+
protected loadWorkspaceSettings(): Promise<void>;
|
|
750
|
+
/**
|
|
751
|
+
* Controls how [Code]($common)s are copied from this iModel into another iModel, to work around problems with iModels
|
|
752
|
+
* created by older connectors. The [imodel-transformer](https://github.com/iTwin/imodel-transformer) sets this appropriately
|
|
753
|
+
* on your behalf - you should never need to set or interrogate this property yourself.
|
|
754
|
+
* @public
|
|
755
|
+
*/
|
|
756
|
+
get codeValueBehavior(): "exact" | "trim-unicode-whitespace";
|
|
757
|
+
set codeValueBehavior(newBehavior: "exact" | "trim-unicode-whitespace");
|
|
758
|
+
/** @internal */
|
|
759
|
+
computeRangesForText(args: ComputeRangesForTextLayoutArgs): TextLayoutRanges;
|
|
760
|
+
/** Writes the contents of a single ECSchema to a file on the local file system.
|
|
761
|
+
* @beta
|
|
762
|
+
*/
|
|
763
|
+
exportSchema(args: ExportSchemaArgs): void;
|
|
764
|
+
/** Writes the contents of all ECSchemas in this iModel to files in a directory on the local file system.
|
|
765
|
+
* @beta
|
|
766
|
+
*/
|
|
767
|
+
exportSchemas(outputDirectory: LocalFileName): void;
|
|
768
|
+
/** Attempt to simplify the geometry stream of a single [[GeometricElement]] or [[GeometryPart]] as specified by `args`.
|
|
769
|
+
* @beta
|
|
770
|
+
*/
|
|
771
|
+
simplifyElementGeometry(args: SimplifyElementGeometryArgs): IModelStatus;
|
|
772
|
+
/** Attempts to optimize all of the geometry in this iModel by identifying [[GeometryPart]]s that are referenced by exactly one
|
|
773
|
+
* element's geometry stream. Each such reference is replaced by inserting the part's geometry directly into the element's geometry stream.
|
|
774
|
+
* Then, the no-longer-used geometry part is deleted.
|
|
775
|
+
* This can improve performance when a connector inadvertently creates large numbers of parts that are each only used once.
|
|
776
|
+
* @beta
|
|
777
|
+
*/
|
|
778
|
+
inlineGeometryParts(): InlineGeometryPartsResult;
|
|
779
|
+
/** Returns a string representation of the error that most recently arose during an operation on the underlying SQLite database.
|
|
780
|
+
* If no errors have occurred, an empty string is returned.
|
|
781
|
+
* Otherwise, a string of the format `message (code)` is returned, where `message` is a human-readable diagnostic string and `code` is an integer status code.
|
|
782
|
+
* See [SQLite error codes and messages](https://www.sqlite.org/c3ref/errcode.html)
|
|
783
|
+
* @note Do not rely upon this value or its specific contents in error handling logic. It is only intended for use in debugging.
|
|
784
|
+
*/
|
|
785
|
+
getLastError(): string;
|
|
786
|
+
}
|
|
787
|
+
/** @public */
|
|
788
|
+
export declare namespace IModelDb {
|
|
789
|
+
/** The collection of models in an [[IModelDb]].
|
|
790
|
+
* @public
|
|
791
|
+
*/
|
|
792
|
+
class Models {
|
|
793
|
+
private _iModel;
|
|
794
|
+
/** @internal */
|
|
795
|
+
constructor(_iModel: IModelDb);
|
|
796
|
+
/** Get the ModelProps with the specified identifier.
|
|
797
|
+
* @param modelId The Model identifier.
|
|
798
|
+
* @throws [[IModelError]] if the model is not found or cannot be loaded.
|
|
799
|
+
* @see tryGetModelProps
|
|
800
|
+
*/
|
|
801
|
+
getModelProps<T extends ModelProps>(id: Id64String): T;
|
|
802
|
+
/** Get the ModelProps with the specified identifier.
|
|
803
|
+
* @param modelId The Model identifier.
|
|
804
|
+
* @returns The ModelProps or `undefined` if the model is not found.
|
|
805
|
+
* @throws [[IModelError]] if the model cannot be loaded.
|
|
806
|
+
* @note Useful for cases when a model may or may not exist and throwing an `Error` would be overkill.
|
|
807
|
+
* @see getModelProps
|
|
808
|
+
*/
|
|
809
|
+
tryGetModelProps<T extends ModelProps>(id: Id64String): T | undefined;
|
|
810
|
+
/** Query for the last modified time for a [[Model]].
|
|
811
|
+
* @param modelId The Id of the model.
|
|
812
|
+
* @throws IModelError if `modelId` does not identify a model in the iModel.
|
|
813
|
+
*/
|
|
814
|
+
queryLastModifiedTime(modelId: Id64String): string;
|
|
815
|
+
/** Get the Model with the specified identifier.
|
|
816
|
+
* @param modelId The Model identifier.
|
|
817
|
+
* @param modelClass Optional class to validate instance against. This parameter can accept abstract or concrete classes, but should be the same as the template (`T`) parameter.
|
|
818
|
+
* @throws [[IModelError]] if the model is not found, cannot be loaded, or fails validation when `modelClass` is specified.
|
|
819
|
+
* @see tryGetModel
|
|
820
|
+
*/
|
|
821
|
+
getModel<T extends Model>(modelId: Id64String, modelClass?: EntityClassType<Model>): T;
|
|
822
|
+
/** Get the Model with the specified identifier.
|
|
823
|
+
* @param modelId The Model identifier.
|
|
824
|
+
* @param modelClass Optional class to validate instance against. This parameter can accept abstract or concrete classes, but should be the same as the template (`T`) parameter.
|
|
825
|
+
* @returns The Model or `undefined` if the model is not found or fails validation when `modelClass` is specified.
|
|
826
|
+
* @throws [[IModelError]] if the model cannot be loaded.
|
|
827
|
+
* @note Useful for cases when a model may or may not exist and throwing an `Error` would be overkill.
|
|
828
|
+
* @see getModel
|
|
829
|
+
*/
|
|
830
|
+
tryGetModel<T extends Model>(modelId: Id64String, modelClass?: EntityClassType<Model>): T | undefined;
|
|
831
|
+
/** Read the properties for a Model as a json string.
|
|
832
|
+
* @param modelIdArg a json string with the identity of the model to load. Must have either "id" or "code".
|
|
833
|
+
* @returns a json string with the properties of the model.
|
|
834
|
+
* @throws [[IModelError]] if the model is not found or cannot be loaded.
|
|
835
|
+
* @see tryGetModelJson
|
|
836
|
+
* @internal
|
|
837
|
+
*/
|
|
838
|
+
getModelJson<T extends ModelProps>(modelIdArg: ModelLoadProps): T;
|
|
839
|
+
/** Read the properties for a Model as a json string.
|
|
840
|
+
* @param modelIdArg a json string with the identity of the model to load. Must have either "id" or "code".
|
|
841
|
+
* @returns a json string with the properties of the model or `undefined` if the model is not found.
|
|
842
|
+
* @see getModelJson
|
|
843
|
+
*/
|
|
844
|
+
private tryGetModelJson;
|
|
845
|
+
/** Get the sub-model of the specified Element.
|
|
846
|
+
* See [[IModelDb.Elements.queryElementIdByCode]] for more on how to find an element by Code.
|
|
847
|
+
* @param modeledElementId Identifies the modeled element.
|
|
848
|
+
* @param modelClass Optional class to validate instance against. This parameter can accept abstract or concrete classes, but should be the same as the template (`T`) parameter.
|
|
849
|
+
* @throws [[IModelError]] if the sub-model is not found, cannot be loaded, or fails validation when `modelClass` is specified.
|
|
850
|
+
* @see tryGetSubModel
|
|
851
|
+
*/
|
|
852
|
+
getSubModel<T extends Model>(modeledElementId: Id64String | GuidString | Code, modelClass?: EntityClassType<Model>): T;
|
|
853
|
+
/** Get the sub-model of the specified Element.
|
|
854
|
+
* See [[IModelDb.Elements.queryElementIdByCode]] for more on how to find an element by Code.
|
|
855
|
+
* @param modeledElementId Identifies the modeled element.
|
|
856
|
+
* @param modelClass Optional class to validate instance against. This parameter can accept abstract or concrete classes, but should be the same as the template (`T`) parameter.
|
|
857
|
+
* @returns The sub-model or `undefined` if the specified element does not have a sub-model or fails validation when `modelClass` is specified.
|
|
858
|
+
* @see getSubModel
|
|
859
|
+
*/
|
|
860
|
+
tryGetSubModel<T extends Model>(modeledElementId: Id64String | GuidString | Code, modelClass?: EntityClassType<Model>): T | undefined;
|
|
861
|
+
/** Create a new model in memory.
|
|
862
|
+
* See the example in [[InformationPartitionElement]].
|
|
863
|
+
* @param modelProps The properties to use when creating the model.
|
|
864
|
+
* @throws [[IModelError]] if there is a problem creating the model.
|
|
865
|
+
*/
|
|
866
|
+
createModel<T extends Model>(modelProps: ModelProps): T;
|
|
867
|
+
/** Insert a new model.
|
|
868
|
+
* @param props The data for the new model.
|
|
869
|
+
* @returns The newly inserted model's Id.
|
|
870
|
+
* @throws [[IModelError]] if unable to insert the model.
|
|
871
|
+
*/
|
|
872
|
+
insertModel(props: ModelProps): Id64String;
|
|
873
|
+
/** Update an existing model.
|
|
874
|
+
* @param props the properties of the model to change
|
|
875
|
+
* @throws [[IModelError]] if unable to update the model.
|
|
876
|
+
*/
|
|
877
|
+
updateModel(props: UpdateModelOptions): void;
|
|
878
|
+
/** Mark the geometry of [[GeometricModel]] as having changed, by recording an indirect change to its GeometryGuid property.
|
|
879
|
+
* Typically the GeometryGuid changes automatically when [[GeometricElement]]s within the model are modified, but
|
|
880
|
+
* explicitly updating it is occasionally useful after modifying definition elements like line styles or materials that indirectly affect the appearance of
|
|
881
|
+
* [[GeometricElement]]s that reference those definition elements in their geometry streams.
|
|
882
|
+
* Cached [Tile]($frontend)s are only invalidated after the geometry guid of the model changes.
|
|
883
|
+
* @note This will throw IModelError with [IModelStatus.VersionTooOld]($core-bentley) if a version of the BisCore schema older than 1.0.11 is present in the iModel.
|
|
884
|
+
* @throws IModelError if unable to update the geometry guid.
|
|
885
|
+
* @see [[TxnManager.onModelGeometryChanged]] for the event emitted in response to such a change.
|
|
886
|
+
*/
|
|
887
|
+
updateGeometryGuid(modelId: Id64String): void;
|
|
888
|
+
/** Delete one or more existing models.
|
|
889
|
+
* @param ids The Ids of the models to be deleted
|
|
890
|
+
* @throws [[IModelError]]
|
|
891
|
+
*/
|
|
892
|
+
deleteModel(ids: Id64Arg): void;
|
|
893
|
+
/** For each specified [[GeometricModel]], attempts to obtain the union of the volumes of all geometric elements within that model.
|
|
894
|
+
* @param ids The Id or Ids of the [[GeometricModel]]s for which to obtain the extents.
|
|
895
|
+
* @returns An array of results, one per supplied Id, in the order in which the Ids were supplied. If the extents could not be obtained, the
|
|
896
|
+
* corresponding results entry's `extents` will be a "null" range (@see [Range3d.isNull]($geometry)) and its `status` will indicate
|
|
897
|
+
* why the extents could not be obtained (e.g., because the Id did not identify a [[GeometricModel]]).
|
|
898
|
+
* @see [[queryRange]] to obtain the union of all of the models' extents.
|
|
899
|
+
*/
|
|
900
|
+
queryExtents(ids: Id64String | Id64String[]): Promise<ModelExtentsProps[]>;
|
|
901
|
+
/** Computes the union of the volumes of all geometric elements within one or more [[GeometricModel]]s, specified by model Id.
|
|
902
|
+
* @see [[queryExtents]] to obtain discrete volumes for each model.
|
|
903
|
+
*/
|
|
904
|
+
queryRange(ids: Id64String | Id64String[]): Promise<AxisAlignedBox3d>;
|
|
905
|
+
}
|
|
906
|
+
interface GuidMapper {
|
|
907
|
+
getFederationGuidFromId(id: Id64String): GuidString | undefined;
|
|
908
|
+
getIdFromFederationGuid(guid?: GuidString): Id64String | undefined;
|
|
909
|
+
}
|
|
910
|
+
/** The collection of elements in an [[IModelDb]].
|
|
911
|
+
* @public
|
|
912
|
+
*/
|
|
913
|
+
class Elements implements GuidMapper {
|
|
914
|
+
private _iModel;
|
|
915
|
+
/** @internal */
|
|
916
|
+
constructor(_iModel: IModelDb);
|
|
917
|
+
getFederationGuidFromId(id: Id64String): GuidString | undefined;
|
|
918
|
+
getIdFromFederationGuid(guid?: GuidString): Id64String | undefined;
|
|
919
|
+
/** Read element data from the iModel as JSON
|
|
920
|
+
* @param elementIdArg a json string with the identity of the element to load. Must have one of "id", "federationGuid", or "code".
|
|
921
|
+
* @returns The JSON properties of the element.
|
|
922
|
+
* @throws [[IModelError]] if the element is not found or cannot be loaded.
|
|
923
|
+
* @see tryGetElementJson
|
|
924
|
+
* @internal
|
|
925
|
+
*/
|
|
926
|
+
getElementJson<T extends ElementProps>(elementId: ElementLoadProps): T;
|
|
927
|
+
/** Read element data from the iModel as JSON
|
|
928
|
+
* @param loadProps - a json string with the identity of the element to load. Must have one of "id", "federationGuid", or "code".
|
|
929
|
+
* @returns The JSON properties of the element or `undefined` if the element is not found.
|
|
930
|
+
* @throws [[IModelError]] if the element exists, but cannot be loaded.
|
|
931
|
+
* @see getElementJson
|
|
932
|
+
*/
|
|
933
|
+
private tryGetElementJson;
|
|
934
|
+
/** Get properties of an Element by Id, FederationGuid, or Code
|
|
935
|
+
* @throws [[IModelError]] if the element is not found or cannot be loaded.
|
|
936
|
+
* @see tryGetElementProps
|
|
937
|
+
*/
|
|
938
|
+
getElementProps<T extends ElementProps>(props: Id64String | GuidString | Code | ElementLoadProps): T;
|
|
939
|
+
/** Get properties of an Element by Id, FederationGuid, or Code
|
|
940
|
+
* @returns The properties of the element or `undefined` if the element is not found.
|
|
941
|
+
* @throws [[IModelError]] if the element exists, but cannot be loaded.
|
|
942
|
+
* @note Useful for cases when an element may or may not exist and throwing an `Error` would be overkill.
|
|
943
|
+
* @see getElementProps
|
|
944
|
+
*/
|
|
945
|
+
tryGetElementProps<T extends ElementProps>(elementId: Id64String | GuidString | Code | ElementLoadProps): T | undefined;
|
|
946
|
+
/** Get an element by Id, FederationGuid, or Code
|
|
947
|
+
* @param elementId either the element's Id, Code, or FederationGuid, or an ElementLoadProps
|
|
948
|
+
* @param elementClass Optional class to validate instance against. This parameter can accept abstract or concrete classes, but should be the same as the template (`T`) parameter.
|
|
949
|
+
* @throws [[IModelError]] if the element is not found, cannot be loaded, or fails validation when `elementClass` is specified.
|
|
950
|
+
* @see tryGetElement
|
|
951
|
+
*/
|
|
952
|
+
getElement<T extends Element>(elementId: Id64String | GuidString | Code | ElementLoadProps, elementClass?: EntityClassType<Element>): T;
|
|
953
|
+
/** Get an element by Id, FederationGuid, or Code
|
|
954
|
+
* @param elementId either the element's Id, Code, or FederationGuid, or an ElementLoadProps
|
|
955
|
+
* @param elementClass Optional class to validate instance against. This parameter can accept abstract or concrete classes, but should be the same as the template (`T`) parameter.
|
|
956
|
+
* @returns The element or `undefined` if the element is not found or fails validation when `elementClass` is specified.
|
|
957
|
+
* @throws [[IModelError]] if the element exists, but cannot be loaded.
|
|
958
|
+
* @note Useful for cases when an element may or may not exist and throwing an `Error` would be overkill.
|
|
959
|
+
* @see getElement
|
|
960
|
+
*/
|
|
961
|
+
tryGetElement<T extends Element>(elementId: Id64String | GuidString | Code | ElementLoadProps, elementClass?: EntityClassType<Element>): T | undefined;
|
|
962
|
+
/** Query for the Id of the element that has a specified code.
|
|
963
|
+
* This method is for the case where you know the element's Code.
|
|
964
|
+
* If you only know the code *value*, then in the simplest case, you can query on that
|
|
965
|
+
* and filter the results.
|
|
966
|
+
* In the simple case, call [[IModelDb.queryEntityIds]], specifying the code value in the where clause of the query params.
|
|
967
|
+
* Or, you can execute an ECSQL select statement. See
|
|
968
|
+
* [frequently used ECSQL queries]($docs/learning/backend/ECSQL-queries.md) for an example.
|
|
969
|
+
* @param code The code to look for
|
|
970
|
+
* @returns The element that uses the code or undefined if the code is not used.
|
|
971
|
+
* @throws IModelError if the code is invalid
|
|
972
|
+
*/
|
|
973
|
+
queryElementIdByCode(code: Required<CodeProps>): Id64String | undefined;
|
|
974
|
+
/** Query for an [[Element]]'s last modified time.
|
|
975
|
+
* @param elementId The Id of the element.
|
|
976
|
+
* @throws IModelError if `elementId` does not identify an element in the iModel.
|
|
977
|
+
*/
|
|
978
|
+
queryLastModifiedTime(elementId: Id64String): string;
|
|
979
|
+
/** Create a new instance of an element.
|
|
980
|
+
* @param elProps The properties of the new element.
|
|
981
|
+
* @throws [[IModelError]] if there is a problem creating the element.
|
|
982
|
+
*/
|
|
983
|
+
createElement<T extends Element>(elProps: ElementProps): T;
|
|
984
|
+
/** Insert a new element into the iModel.
|
|
985
|
+
* @param elProps The properties of the new element.
|
|
986
|
+
* @returns The newly inserted element's Id.
|
|
987
|
+
* @throws [[IModelError]] if unable to insert the element.
|
|
988
|
+
* @note For convenience, the value of `elProps.id` is updated to reflect the resultant element's id.
|
|
989
|
+
* However when `elProps.federationGuid` is not present or undefined, a new Guid will be generated and stored on the resultant element. But
|
|
990
|
+
* the value of `elProps.federationGuid` is *not* updated. Generally, it is best to re-read the element after inserting (e.g. via [[getElementProps]])
|
|
991
|
+
* if you intend to continue working with it. That will ensure its values reflect the persistent state.
|
|
992
|
+
*/
|
|
993
|
+
insertElement(elProps: ElementProps, options?: InsertElementOptions): Id64String;
|
|
994
|
+
/**
|
|
995
|
+
* Update some properties of an existing element.
|
|
996
|
+
* All parts of `elProps` are optional *other than* `id`. If id is missing, an exception is thrown.
|
|
997
|
+
*
|
|
998
|
+
* To support clearing a property value, every property name that is present in the `elProps` object will be updated even if the value is `undefined`.
|
|
999
|
+
* To keep an individual element property unchanged, it should either be excluded from the `elProps` parameter or set to its current value.
|
|
1000
|
+
* @param elProps the properties of the element to update.
|
|
1001
|
+
* @note The values of `classFullName` and `model` *may not be changed* by this method. Further, it will permute the `elProps` object by adding or
|
|
1002
|
+
* overwriting their values to the correct values.
|
|
1003
|
+
* @throws [[IModelError]] if unable to update the element.
|
|
1004
|
+
*/
|
|
1005
|
+
updateElement<T extends ElementProps>(elProps: Partial<T>): void;
|
|
1006
|
+
/** Delete one or more elements from this iModel.
|
|
1007
|
+
* @param ids The set of Ids of the element(s) to be deleted
|
|
1008
|
+
* @throws [[IModelError]]
|
|
1009
|
+
* @see deleteDefinitionElements
|
|
1010
|
+
*/
|
|
1011
|
+
deleteElement(ids: Id64Arg): void;
|
|
1012
|
+
/** DefinitionElements can only be deleted if it can be determined that they are not referenced by other Elements.
|
|
1013
|
+
* This *usage query* can be expensive since it may involve scanning the GeometryStreams of all GeometricElements.
|
|
1014
|
+
* Since [[deleteElement]] does not perform these additional checks, it fails in order to prevent potentially referenced DefinitionElements from being deleted.
|
|
1015
|
+
* This method performs those expensive checks and then calls *delete* if not referenced.
|
|
1016
|
+
* @param ids The Ids of the DefinitionElements to attempt to delete. To prevent multiple passes over the same GeometricElements, it is best to pass in the entire array of
|
|
1017
|
+
* DefinitionElements rather than calling this method separately for each one. Ids that are not valid DefinitionElements will be ignored.
|
|
1018
|
+
* @returns An IdSet of the DefinitionElements that are used and were therefore not deleted.
|
|
1019
|
+
* @see deleteElement
|
|
1020
|
+
* @beta
|
|
1021
|
+
*/
|
|
1022
|
+
deleteDefinitionElements(definitionElementIds: Id64Array): Id64Set;
|
|
1023
|
+
/** Query for the child elements of the specified element.
|
|
1024
|
+
* @returns Returns an array of child element identifiers.
|
|
1025
|
+
* @throws [[IModelError]]
|
|
1026
|
+
*/
|
|
1027
|
+
queryChildren(elementId: Id64String): Id64String[];
|
|
1028
|
+
/** Query for the parent of the specified element.
|
|
1029
|
+
* @param elementId The element to check for a parent
|
|
1030
|
+
* @returns The identifier of the element's parent or undefined if the element has no parent
|
|
1031
|
+
* @throws [[IModelError]] if the element does not exist
|
|
1032
|
+
*/
|
|
1033
|
+
queryParent(elementId: Id64String): Id64String | undefined;
|
|
1034
|
+
/** Returns true if the specified Element has a sub-model.
|
|
1035
|
+
* @see [[IModelDb.Models.getSubModel]]
|
|
1036
|
+
*/
|
|
1037
|
+
hasSubModel(elementId: Id64String): boolean;
|
|
1038
|
+
/** Get the root subject element. */
|
|
1039
|
+
getRootSubject(): Subject;
|
|
1040
|
+
/** Query for aspects of a particular class (polymorphically) associated with this element.
|
|
1041
|
+
* @throws [[IModelError]]
|
|
1042
|
+
* @note Most cases should use the [[getAspects]] wrapper rather than calling this method directly.
|
|
1043
|
+
* @internal
|
|
1044
|
+
*/
|
|
1045
|
+
_queryAspects(elementId: Id64String, fromClassFullName: string, excludedClassFullNames?: Set<string>): ElementAspect[];
|
|
1046
|
+
/** Query for aspect by ECInstanceId
|
|
1047
|
+
* @throws [[IModelError]]
|
|
1048
|
+
*/
|
|
1049
|
+
private _queryAspect;
|
|
1050
|
+
/** Get a single ElementAspect by its instance Id.
|
|
1051
|
+
* @throws [[IModelError]]
|
|
1052
|
+
*/
|
|
1053
|
+
getAspect(aspectInstanceId: Id64String): ElementAspect;
|
|
1054
|
+
private static classMap;
|
|
1055
|
+
private runInstanceQuery;
|
|
1056
|
+
/** Get the ElementAspect instances that are owned by the specified element.
|
|
1057
|
+
* @param elementId Get ElementAspects associated with this Element
|
|
1058
|
+
* @param aspectClassFullName Optionally filter ElementAspects polymorphically by this class name
|
|
1059
|
+
* @param excludedClassFullNames Optional filter to exclude aspects from classes in the given set.
|
|
1060
|
+
* @throws [[IModelError]]
|
|
1061
|
+
*/
|
|
1062
|
+
getAspects(elementId: Id64String, aspectClassFullName?: string, excludedClassFullNames?: Set<string>): ElementAspect[];
|
|
1063
|
+
/** Insert a new ElementAspect into the iModel.
|
|
1064
|
+
* @param aspectProps The properties of the new ElementAspect.
|
|
1065
|
+
* @throws [[IModelError]] if unable to insert the ElementAspect.
|
|
1066
|
+
* @returns the id of the newly inserted aspect.
|
|
1067
|
+
* @note Aspect Ids may collide with element Ids, so don't put both in a container like Set or Map
|
|
1068
|
+
* use [EntityReference]($common) for that instead.
|
|
1069
|
+
*/
|
|
1070
|
+
insertAspect(aspectProps: ElementAspectProps): Id64String;
|
|
1071
|
+
/** Update an exist ElementAspect within the iModel.
|
|
1072
|
+
* @param aspectProps The properties to use to update the ElementAspect.
|
|
1073
|
+
* @throws [[IModelError]] if unable to update the ElementAspect.
|
|
1074
|
+
*/
|
|
1075
|
+
updateAspect(aspectProps: ElementAspectProps): void;
|
|
1076
|
+
/** Delete one or more ElementAspects from this iModel.
|
|
1077
|
+
* @param aspectInstanceIds The set of instance Ids of the ElementAspect(s) to be deleted
|
|
1078
|
+
* @throws [[IModelError]] if unable to delete the ElementAspect.
|
|
1079
|
+
*/
|
|
1080
|
+
deleteAspect(aspectInstanceIds: Id64Arg): void;
|
|
1081
|
+
}
|
|
1082
|
+
/** The collection of views in an [[IModelDb]].
|
|
1083
|
+
* @public
|
|
1084
|
+
*/
|
|
1085
|
+
class Views {
|
|
1086
|
+
private _iModel;
|
|
1087
|
+
/** @internal */
|
|
1088
|
+
constructor(_iModel: IModelDb);
|
|
1089
|
+
private static viewStoreProperty;
|
|
1090
|
+
private _viewStore?;
|
|
1091
|
+
get hasViewStore(): boolean;
|
|
1092
|
+
/** @beta */
|
|
1093
|
+
get viewStore(): ViewStore.CloudAccess;
|
|
1094
|
+
set viewStore(viewStore: ViewStore.CloudAccess);
|
|
1095
|
+
/** @beta */
|
|
1096
|
+
accessViewStore(args: {
|
|
1097
|
+
props?: CloudSqlite.ContainerProps;
|
|
1098
|
+
accessLevel?: BlobContainer.RequestAccessLevel;
|
|
1099
|
+
}): Promise<ViewStore.CloudAccess>;
|
|
1100
|
+
/** @beta */
|
|
1101
|
+
saveDefaultViewStore(arg: CloudSqlite.ContainerProps): void;
|
|
1102
|
+
/** Query for the array of ViewDefinitionProps of the specified class and matching the specified IsPrivate setting.
|
|
1103
|
+
* @param className Query for view definitions of this class.
|
|
1104
|
+
* @param wantPrivate If true, include private view definitions.
|
|
1105
|
+
*/
|
|
1106
|
+
queryViewDefinitionProps(className?: string, limit?: number, offset?: number, wantPrivate?: boolean): ViewDefinitionProps[];
|
|
1107
|
+
/** Default parameters for iterating/querying ViewDefinitions. Includes all subclasses of ViewDefinition, excluding only those marked 'private'. */
|
|
1108
|
+
static readonly defaultQueryParams: ViewQueryParams;
|
|
1109
|
+
/** Iterate all ViewDefinitions matching the supplied query.
|
|
1110
|
+
* @param params Specifies the query by which views are selected.
|
|
1111
|
+
* @param callback Function invoked for each ViewDefinition matching the query. Return false to terminate iteration, true to continue.
|
|
1112
|
+
* @returns true if all views were iterated, false if iteration was terminated early due to callback returning false.
|
|
1113
|
+
*/
|
|
1114
|
+
iterateViews(params: ViewQueryParams, callback: (view: ViewDefinition) => boolean): boolean;
|
|
1115
|
+
private loadViewData;
|
|
1116
|
+
/** Obtain a [ViewStateProps]($common) for a [[ViewDefinition]] specified by ViewIdString. */
|
|
1117
|
+
getViewStateProps(viewDefinitionId: ViewIdString, options?: ViewStateLoadProps): Promise<ViewStateProps>;
|
|
1118
|
+
private getViewThumbnailArg;
|
|
1119
|
+
/** Get the thumbnail for a view.
|
|
1120
|
+
* @param viewDefinitionId The Id of the view for thumbnail
|
|
1121
|
+
* @returns the ThumbnailProps, or undefined if no thumbnail exists.
|
|
1122
|
+
*/
|
|
1123
|
+
getThumbnail(viewDefinitionId: Id64String): ThumbnailProps | undefined;
|
|
1124
|
+
/** Save a thumbnail for a view.
|
|
1125
|
+
* @param viewDefinitionId The Id of the view for thumbnail
|
|
1126
|
+
* @param thumbnail The thumbnail data.
|
|
1127
|
+
* @returns 0 if successful
|
|
1128
|
+
*/
|
|
1129
|
+
saveThumbnail(viewDefinitionId: Id64String, thumbnail: ThumbnailProps): number;
|
|
1130
|
+
/** Set the default view property the iModel.
|
|
1131
|
+
* @param viewId The Id of the ViewDefinition to use as the default
|
|
1132
|
+
* @deprecated in 4.2.x. Avoid setting this property - it is not practical for one single view to serve the needs of the many applications
|
|
1133
|
+
* that might wish to view the contents of the iModel.
|
|
1134
|
+
*/
|
|
1135
|
+
setDefaultViewId(viewId: Id64String): void;
|
|
1136
|
+
}
|
|
1137
|
+
/** Represents the current state of a pollable tile content request.
|
|
1138
|
+
* Note: lack of a "completed" state because polling a completed request returns the content as a Uint8Array.
|
|
1139
|
+
* @internal
|
|
1140
|
+
*/
|
|
1141
|
+
enum TileContentState {
|
|
1142
|
+
New = 0,// Request was just created and enqueued.
|
|
1143
|
+
Pending = 1,// Request is enqueued but not yet being processed.
|
|
1144
|
+
Loading = 2
|
|
1145
|
+
}
|
|
1146
|
+
/** @internal */
|
|
1147
|
+
class Tiles {
|
|
1148
|
+
private _iModel;
|
|
1149
|
+
/** @internal */
|
|
1150
|
+
constructor(_iModel: IModelDb);
|
|
1151
|
+
/** @internal */
|
|
1152
|
+
requestTileTreeProps(id: string): Promise<IModelTileTreeProps>;
|
|
1153
|
+
private pollTileContent;
|
|
1154
|
+
/** @internal */
|
|
1155
|
+
requestTileContent(treeId: string, tileId: string): Promise<IModelJsNative.TileContent>;
|
|
1156
|
+
/** @internal */
|
|
1157
|
+
getTileContent(treeId: string, tileId: string): Promise<Uint8Array>;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Argument to a function that can accept a valid access token.
|
|
1162
|
+
* @public
|
|
1163
|
+
*/
|
|
1164
|
+
export interface TokenArg {
|
|
1165
|
+
/** If present, the access token for the requested operation. If not present, use [[IModelHost.getAccessToken]] */
|
|
1166
|
+
readonly accessToken?: AccessToken;
|
|
1167
|
+
}
|
|
1168
|
+
/** Augments a [[SnapshotDbOpenArgs]] or [[OpenBriefcaseArgs]] with a [CloudContainer]($docs/learning/backend/Workspace.md).
|
|
1169
|
+
* The properties are this interface are reserved for internal use only.
|
|
1170
|
+
* @public
|
|
1171
|
+
*/
|
|
1172
|
+
export interface CloudContainerArgs {
|
|
1173
|
+
/** @internal */
|
|
1174
|
+
container?: CloudSqlite.CloudContainer;
|
|
1175
|
+
}
|
|
1176
|
+
/** Options to open a [SnapshotDb]($backend).
|
|
1177
|
+
* @public
|
|
1178
|
+
*/
|
|
1179
|
+
export type SnapshotDbOpenArgs = SnapshotOpenOptions & CloudContainerArgs & OpenSqliteArgs;
|
|
1180
|
+
/**
|
|
1181
|
+
* Arguments to open a BriefcaseDb
|
|
1182
|
+
* @public
|
|
1183
|
+
*/
|
|
1184
|
+
export type OpenBriefcaseArgs = OpenBriefcaseProps & CloudContainerArgs & OpenSqliteArgs;
|
|
1185
|
+
/**
|
|
1186
|
+
* A local copy of an iModel from iModelHub that can pull and potentially push changesets.
|
|
1187
|
+
* BriefcaseDb raises a set of events to allow apps and subsystems to track its object life cycle, including [[onOpen]] and [[onOpened]].
|
|
1188
|
+
* @public
|
|
1189
|
+
*/
|
|
1190
|
+
export declare class BriefcaseDb extends IModelDb {
|
|
1191
|
+
/** Manages local changes to this briefcase. */
|
|
1192
|
+
readonly txns: TxnManager;
|
|
1193
|
+
/** override superclass method */
|
|
1194
|
+
get isBriefcase(): boolean;
|
|
1195
|
+
readonly briefcaseId: BriefcaseId;
|
|
1196
|
+
private _skipSyncSchemasOnPullAndPush?;
|
|
1197
|
+
/** @internal */
|
|
1198
|
+
get skipSyncSchemasOnPullAndPush(): boolean;
|
|
1199
|
+
/**
|
|
1200
|
+
* Event raised just before a BriefcaseDb is opened. Supplies the arguments that will be used to open the BriefcaseDb.
|
|
1201
|
+
* Throw an exception to stop the open.
|
|
1202
|
+
*
|
|
1203
|
+
* **Example:**
|
|
1204
|
+
* ``` ts
|
|
1205
|
+
* [[include:BriefcaseDb.onOpen]]
|
|
1206
|
+
* ```
|
|
1207
|
+
*/
|
|
1208
|
+
static readonly onOpen: BeEvent<(_args: OpenBriefcaseArgs) => void>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Event raised just after a BriefcaseDb is opened. Supplies the newly opened BriefcaseDb and the arguments that were used to open it.
|
|
1211
|
+
*
|
|
1212
|
+
* **Example:**
|
|
1213
|
+
* ``` ts
|
|
1214
|
+
* [[include:BriefcaseDb.onOpened]]
|
|
1215
|
+
* ```
|
|
1216
|
+
*/
|
|
1217
|
+
static readonly onOpened: BeEvent<(_iModelDb: BriefcaseDb, _args: OpenBriefcaseArgs) => void>;
|
|
1218
|
+
/** Event raised after a BriefcaseDb has been closed. */
|
|
1219
|
+
readonly onClosed: BeEvent<() => void>;
|
|
1220
|
+
/** @alpha */
|
|
1221
|
+
static readonly onCodeServiceCreated: BeEvent<(briefcase: BriefcaseDb) => void>;
|
|
1222
|
+
static findByKey(key: string): BriefcaseDb;
|
|
1223
|
+
static tryFindByKey(key: string): BriefcaseDb | undefined;
|
|
1224
|
+
/**
|
|
1225
|
+
* The Guid that identifies the *context* that owns this iModel.
|
|
1226
|
+
* GuidString | undefined for the superclass, but required for BriefcaseDb
|
|
1227
|
+
* */
|
|
1228
|
+
get iTwinId(): GuidString;
|
|
1229
|
+
/**
|
|
1230
|
+
* Determine whether this BriefcaseDb should use a lock server.
|
|
1231
|
+
* All must be true:
|
|
1232
|
+
* - file is open for write
|
|
1233
|
+
* - has an assigned briefcaseId
|
|
1234
|
+
* - the "no locking" flag is not present. This is a property of an iModel, established when the iModel is created in IModelHub.
|
|
1235
|
+
*/
|
|
1236
|
+
protected get useLockServer(): boolean;
|
|
1237
|
+
protected makeLockControl(): void;
|
|
1238
|
+
protected constructor(args: {
|
|
1239
|
+
nativeDb: IModelJsNative.DgnDb;
|
|
1240
|
+
key: string;
|
|
1241
|
+
openMode: OpenMode;
|
|
1242
|
+
briefcaseId: number;
|
|
1243
|
+
});
|
|
1244
|
+
/** Upgrades the profile or domain schemas. File must be closed before this call and is always left closed. */
|
|
1245
|
+
private static doUpgrade;
|
|
1246
|
+
/** Upgrades the schemas in the iModel based on the current version of the software. Follows a sequence of operations -
|
|
1247
|
+
* * Acquires a schema lock to prevent other users from making any other changes while upgrade is happening
|
|
1248
|
+
* * Updates the local briefcase with the schema changes.
|
|
1249
|
+
* * Pushes the resulting changeset(s) to iModelHub.
|
|
1250
|
+
* Note that the upgrade requires that the local briefcase be closed, and may result in one or two change sets depending on whether both
|
|
1251
|
+
* profile and domain schemas need to get upgraded.
|
|
1252
|
+
* @see ($docs/learning/backend/IModelDb.md#upgrading-schemas-in-an-imodel)
|
|
1253
|
+
*/
|
|
1254
|
+
static upgradeSchemas(briefcase: OpenBriefcaseArgs): Promise<void>;
|
|
1255
|
+
/** Open a briefcase file and return a new BriefcaseDb to interact with it.
|
|
1256
|
+
* @param args parameters that specify the file name, and options for opening the briefcase file
|
|
1257
|
+
*/
|
|
1258
|
+
static open(args: OpenBriefcaseArgs): Promise<BriefcaseDb>;
|
|
1259
|
+
/** This is called by native code when applying a changeset */
|
|
1260
|
+
private onChangesetConflict;
|
|
1261
|
+
/** If the briefcase is read-only, reopen the native briefcase for writing.
|
|
1262
|
+
* Execute the supplied function.
|
|
1263
|
+
* If the briefcase was read-only, reopen the native briefcase as read-only.
|
|
1264
|
+
* @note this._openMode is not changed from its initial value.
|
|
1265
|
+
* @internal Exported strictly for tests
|
|
1266
|
+
*/
|
|
1267
|
+
executeWritable(func: () => Promise<void>): Promise<void>;
|
|
1268
|
+
private closeAndReopen;
|
|
1269
|
+
/** Pull and apply changesets from iModelHub */
|
|
1270
|
+
pullChanges(arg?: PullChangesArgs): Promise<void>;
|
|
1271
|
+
/** Revert timeline changes and then push resulting changeset */
|
|
1272
|
+
revertAndPushChanges(arg: RevertChangesArgs): Promise<void>;
|
|
1273
|
+
/** Push changes to iModelHub. */
|
|
1274
|
+
pushChanges(arg: PushChangesArgs): Promise<void>;
|
|
1275
|
+
close(): void;
|
|
1276
|
+
}
|
|
1277
|
+
/** A *snapshot* iModel database file that is used for archival and data transfer purposes.
|
|
1278
|
+
* @see [Snapshot iModels]($docs/learning/backend/AccessingIModels.md#snapshot-imodels)
|
|
1279
|
+
* @see [About IModelDb]($docs/learning/backend/IModelDb.md)
|
|
1280
|
+
* @public
|
|
1281
|
+
*/
|
|
1282
|
+
export declare class SnapshotDb extends IModelDb {
|
|
1283
|
+
get isSnapshot(): boolean;
|
|
1284
|
+
private _refreshSas;
|
|
1285
|
+
/** Timer used to restart the default txn on the SnapshotDb after some inactivity. This is only used for checkpoints.
|
|
1286
|
+
* Restarting the default txn lets CloudSqlite know that any blocks that may have been read may now be ejected.
|
|
1287
|
+
* Without restarting the default txn, CloudSQLite can get into a state where it can not evict any blocks to make space for more blocks.
|
|
1288
|
+
*/
|
|
1289
|
+
private _restartDefaultTxnTimer?;
|
|
1290
|
+
private _createClassViewsOnClose?;
|
|
1291
|
+
static readonly onOpen: BeEvent<(path: LocalFileName, opts?: SnapshotDbOpenArgs) => void>;
|
|
1292
|
+
static readonly onOpened: BeEvent<(_iModelDb: SnapshotDb) => void>;
|
|
1293
|
+
private constructor();
|
|
1294
|
+
static findByKey(key: string): SnapshotDb;
|
|
1295
|
+
static tryFindByKey(key: string): SnapshotDb | undefined;
|
|
1296
|
+
/** Create an *empty* local [Snapshot]($docs/learning/backend/AccessingIModels.md#snapshot-imodels) iModel file.
|
|
1297
|
+
* Snapshots are not synchronized with iModelHub, so do not have a change timeline.
|
|
1298
|
+
* @note: A *snapshot* cannot be modified after [[close]] is called.
|
|
1299
|
+
* @param filePath The file that will contain the new iModel *snapshot*
|
|
1300
|
+
* @param options The parameters that define the new iModel *snapshot*
|
|
1301
|
+
* @returns A writeable SnapshotDb
|
|
1302
|
+
* @see [Snapshot iModels]($docs/learning/backend/AccessingIModels.md#snapshot-imodels)
|
|
1303
|
+
*/
|
|
1304
|
+
static createEmpty(filePath: LocalFileName, options: CreateEmptySnapshotIModelProps): SnapshotDb;
|
|
1305
|
+
/** Create a local [Snapshot]($docs/learning/backend/AccessingIModels.md#snapshot-imodels) iModel file, using this iModel as a *seed* or starting point.
|
|
1306
|
+
* Snapshots are not synchronized with iModelHub, so do not have a change timeline.
|
|
1307
|
+
* @note: A *snapshot* cannot be modified after [[close]] is called.
|
|
1308
|
+
* @param iModelDb The snapshot will be initialized from the current contents of this iModelDb
|
|
1309
|
+
* @param snapshotFile The file that will contain the new iModel *snapshot*
|
|
1310
|
+
* @param options Optional properties that determine how the snapshot iModel is created.
|
|
1311
|
+
* @returns A writeable SnapshotDb
|
|
1312
|
+
* @see [Snapshot iModels]($docs/learning/backend/AccessingIModels.md#snapshot-imodels)
|
|
1313
|
+
*/
|
|
1314
|
+
static createFrom(iModelDb: IModelDb, snapshotFile: string, options?: CreateSnapshotIModelProps): SnapshotDb;
|
|
1315
|
+
/** open this SnapshotDb read/write, strictly to apply incoming changesets. Used for creating new checkpoints.
|
|
1316
|
+
* @internal
|
|
1317
|
+
*/
|
|
1318
|
+
static openForApplyChangesets(path: LocalFileName, props?: SnapshotDbOpenArgs): SnapshotDb;
|
|
1319
|
+
/** Open a read-only iModel *snapshot*.
|
|
1320
|
+
* @param path the full path of the snapshot iModel file to open.
|
|
1321
|
+
* @param props options for opening snapshot
|
|
1322
|
+
* @see [[close]]
|
|
1323
|
+
* @throws [[IModelError]] If the file is not found or is not a valid *snapshot*.
|
|
1324
|
+
*/
|
|
1325
|
+
static openFile(path: LocalFileName, opts?: SnapshotDbOpenArgs): SnapshotDb;
|
|
1326
|
+
private static attachAndOpenCheckpoint;
|
|
1327
|
+
/** @internal */
|
|
1328
|
+
static openCheckpointFromRpc(checkpoint: CheckpointProps): Promise<SnapshotDb>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Open a Checkpoint directly from its cloud container.
|
|
1331
|
+
* @beta
|
|
1332
|
+
*/
|
|
1333
|
+
static openCheckpoint(args: OpenCheckpointArgs): Promise<SnapshotDb>;
|
|
1334
|
+
/** Used to refresh the container sasToken using the current user's accessToken.
|
|
1335
|
+
* Also restarts the timer which causes the default txn to be restarted on db if the timer activates.
|
|
1336
|
+
* @internal
|
|
1337
|
+
*/
|
|
1338
|
+
refreshContainerForRpc(userAccessToken: AccessToken): Promise<void>;
|
|
1339
|
+
/** @internal */
|
|
1340
|
+
beforeClose(): void;
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Standalone iModels are read/write files that are not associated with an iTwin or managed by iModelHub.
|
|
1344
|
+
* They are relevant only for testing, or for small-scale single-user scenarios.
|
|
1345
|
+
* Standalone iModels are designed such that the API for Standalone iModels and Briefcase
|
|
1346
|
+
* iModels (those synchronized with iModelHub) are as similar and consistent as possible.
|
|
1347
|
+
* This leads to a straightforward process where the a user starts with StandaloneDb and can
|
|
1348
|
+
* optionally choose to upgrade to an iTwin.
|
|
1349
|
+
*
|
|
1350
|
+
* Some additional details. Standalone iModels:
|
|
1351
|
+
* - always have [Guid.empty]($bentley) for their iTwinId (they are "unassociated" files)
|
|
1352
|
+
* - always have BriefcaseId === [BriefcaseIdValue.Unassigned]($common)
|
|
1353
|
+
* - are connected to the frontend via [BriefcaseConnection.openStandalone]($frontend)
|
|
1354
|
+
* - may be opened without supplying any user credentials
|
|
1355
|
+
* - may be opened read/write
|
|
1356
|
+
* - cannot apply a changeset to nor generate a changesets (since there is no timeline from which to get/push changesets)
|
|
1357
|
+
* @public
|
|
1358
|
+
*/
|
|
1359
|
+
export declare class StandaloneDb extends BriefcaseDb {
|
|
1360
|
+
get isStandalone(): boolean;
|
|
1361
|
+
protected get useLockServer(): boolean;
|
|
1362
|
+
static findByKey(key: string): StandaloneDb;
|
|
1363
|
+
static tryFindByKey(key: string): StandaloneDb | undefined;
|
|
1364
|
+
/** Create an *empty* standalone iModel.
|
|
1365
|
+
* @param filePath The file path for the iModel
|
|
1366
|
+
* @param args The parameters that define the new iModel
|
|
1367
|
+
*/
|
|
1368
|
+
static createEmpty(filePath: LocalFileName, args: CreateEmptyStandaloneIModelProps): StandaloneDb;
|
|
1369
|
+
/**
|
|
1370
|
+
* Upgrades the schemas in the standalone iModel file.
|
|
1371
|
+
* Note that the upgrade requires that the file be closed, and will leave it back in the closed state.
|
|
1372
|
+
* @param filePath Full path name of the standalone iModel file.
|
|
1373
|
+
* @see ($docs/learning/backend/IModelDb.md#upgrading-schemas-in-an-imodel)
|
|
1374
|
+
* @see [[StandaloneDb.validateSchemas]]
|
|
1375
|
+
*/
|
|
1376
|
+
static upgradeStandaloneSchemas(filePath: LocalFileName): void;
|
|
1377
|
+
/** Creates or updates views in the iModel to permit visualizing the EC content as ECClasses and ECProperties rather than raw database tables and columns.
|
|
1378
|
+
* This can be helpful when debugging the EC data, especially when the raw tables make use of shared columns or spread data across multiple tables.
|
|
1379
|
+
* @throws IModelError if view creation failed.
|
|
1380
|
+
* @note The views are strictly intended for developers and debugging purposes only - they should not be used in application code.
|
|
1381
|
+
* @beta
|
|
1382
|
+
*/
|
|
1383
|
+
createClassViews(): void;
|
|
1384
|
+
/** Open a standalone iModel file.
|
|
1385
|
+
* @param filePath The path of the standalone iModel file.
|
|
1386
|
+
* @param openMode Optional open mode for the standalone iModel. The default is read/write.
|
|
1387
|
+
* @throws [[IModelError]] if the file is not a standalone iModel.
|
|
1388
|
+
* @see [BriefcaseConnection.openStandalone]($frontend) to open a StandaloneDb from the frontend
|
|
1389
|
+
*/
|
|
1390
|
+
static openFile(filePath: LocalFileName, openMode?: OpenMode, options?: SnapshotDbOpenArgs): StandaloneDb;
|
|
1391
|
+
/** Convert an iModel stored on the local file system into a StandaloneDb, chiefly for testing purposes.
|
|
1392
|
+
* The file must not be open in any application.
|
|
1393
|
+
* @param iModelFileName the path to the iModel on the local file system.
|
|
1394
|
+
* @beta
|
|
1395
|
+
*/
|
|
1396
|
+
static convertToStandalone(iModelFileName: LocalFileName): void;
|
|
1397
|
+
}
|
|
1398
|
+
//# sourceMappingURL=IModelDb.d.ts.map
|