@itwin/core-backend 5.8.2 → 5.9.0-dev.10
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 +1 -1
- package/lib/cjs/BackendHubAccess.d.ts +38 -0
- package/lib/cjs/BackendHubAccess.d.ts.map +1 -1
- package/lib/cjs/BackendHubAccess.js.map +1 -1
- package/lib/cjs/BackendLoggerCategory.js.map +1 -1
- package/lib/cjs/BisCoreSchema.js.map +1 -1
- package/lib/cjs/BlobContainerService.js.map +1 -1
- package/lib/cjs/BriefcaseManager.js +3 -3
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/CatalogDb.js.map +1 -1
- package/lib/cjs/Category.d.ts +37 -7
- package/lib/cjs/Category.d.ts.map +1 -1
- package/lib/cjs/Category.js +33 -42
- package/lib/cjs/Category.js.map +1 -1
- package/lib/cjs/ChangeSummaryManager.js +2 -2
- package/lib/cjs/ChangeSummaryManager.js.map +1 -1
- package/lib/cjs/ChangedElementsDb.js.map +1 -1
- package/lib/cjs/ChangesetECAdaptor.d.ts.map +1 -1
- package/lib/cjs/ChangesetECAdaptor.js +253 -250
- package/lib/cjs/ChangesetECAdaptor.js.map +1 -1
- package/lib/cjs/ChannelControl.d.ts +29 -0
- package/lib/cjs/ChannelControl.d.ts.map +1 -1
- package/lib/cjs/ChannelControl.js.map +1 -1
- package/lib/cjs/CheckpointManager.js +1 -1
- package/lib/cjs/CheckpointManager.js.map +1 -1
- package/lib/cjs/ClassRegistry.js +5 -5
- package/lib/cjs/ClassRegistry.js.map +1 -1
- package/lib/cjs/CloudSqlite.d.ts +1 -1
- package/lib/cjs/CloudSqlite.d.ts.map +1 -1
- package/lib/cjs/CloudSqlite.js +68 -13
- package/lib/cjs/CloudSqlite.js.map +1 -1
- package/lib/cjs/CodeService.js.map +1 -1
- package/lib/cjs/CodeSpecs.d.ts +32 -3
- package/lib/cjs/CodeSpecs.d.ts.map +1 -1
- package/lib/cjs/CodeSpecs.js +48 -20
- package/lib/cjs/CodeSpecs.js.map +1 -1
- package/lib/cjs/ConcurrentQuery.js.map +1 -1
- package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
- package/lib/cjs/DevTools.js.map +1 -1
- package/lib/cjs/DisplayStyle.d.ts +18 -3
- package/lib/cjs/DisplayStyle.d.ts.map +1 -1
- package/lib/cjs/DisplayStyle.js +10 -21
- package/lib/cjs/DisplayStyle.js.map +1 -1
- package/lib/cjs/ECDb.js.map +1 -1
- package/lib/cjs/ECSchemaXmlContext.js.map +1 -1
- package/lib/cjs/ECSqlRowExecutor.js.map +1 -1
- package/lib/cjs/ECSqlStatement.js.map +1 -1
- package/lib/cjs/ECSqlSyncReader.js.map +1 -1
- package/lib/cjs/EditTxn.d.ts +262 -0
- package/lib/cjs/EditTxn.d.ts.map +1 -0
- package/lib/cjs/EditTxn.js +548 -0
- package/lib/cjs/EditTxn.js.map +1 -0
- package/lib/cjs/Element.d.ts +74 -5
- package/lib/cjs/Element.d.ts.map +1 -1
- package/lib/cjs/Element.js +63 -75
- package/lib/cjs/Element.js.map +1 -1
- package/lib/cjs/ElementAspect.d.ts +10 -0
- package/lib/cjs/ElementAspect.d.ts.map +1 -1
- package/lib/cjs/ElementAspect.js +21 -12
- package/lib/cjs/ElementAspect.js.map +1 -1
- package/lib/cjs/ElementGraphics.js.map +1 -1
- package/lib/cjs/ElementTreeWalker.d.ts +56 -3
- package/lib/cjs/ElementTreeWalker.d.ts.map +1 -1
- package/lib/cjs/ElementTreeWalker.js +53 -40
- package/lib/cjs/ElementTreeWalker.js.map +1 -1
- package/lib/cjs/Entity.js.map +1 -1
- package/lib/cjs/EntityReferences.js.map +1 -1
- package/lib/cjs/ExportGraphics.js.map +1 -1
- package/lib/cjs/ExternalSource.d.ts +11 -2
- package/lib/cjs/ExternalSource.d.ts.map +1 -1
- package/lib/cjs/ExternalSource.js +10 -8
- package/lib/cjs/ExternalSource.js.map +1 -1
- package/lib/cjs/FontFile.js.map +1 -1
- package/lib/cjs/GeoCoordConfig.js.map +1 -1
- package/lib/cjs/GeographicCRSServices.js.map +1 -1
- package/lib/cjs/GeometrySummary.js +47 -47
- package/lib/cjs/GeometrySummary.js.map +1 -1
- package/lib/cjs/IModelDb.d.ts +66 -22
- package/lib/cjs/IModelDb.d.ts.map +1 -1
- package/lib/cjs/IModelDb.js +183 -297
- package/lib/cjs/IModelDb.js.map +1 -1
- package/lib/cjs/IModelDbFonts.js.map +1 -1
- package/lib/cjs/IModelElementCloneContext.js.map +1 -1
- package/lib/cjs/IModelHost.d.ts +58 -1
- package/lib/cjs/IModelHost.d.ts.map +1 -1
- package/lib/cjs/IModelHost.js +89 -0
- package/lib/cjs/IModelHost.js.map +1 -1
- package/lib/cjs/IModelIncrementalSchemaLocater.js.map +1 -1
- package/lib/cjs/IModelJsFs.js.map +1 -1
- package/lib/cjs/ImageSourceConversion.js.map +1 -1
- package/lib/cjs/IpcHost.d.ts.map +1 -1
- package/lib/cjs/IpcHost.js +15 -6
- package/lib/cjs/IpcHost.js.map +1 -1
- package/lib/cjs/LineStyle.d.ts +47 -7
- package/lib/cjs/LineStyle.d.ts.map +1 -1
- package/lib/cjs/LineStyle.js +38 -33
- package/lib/cjs/LineStyle.js.map +1 -1
- package/lib/cjs/LocalHub.js +1 -1
- package/lib/cjs/LocalHub.js.map +1 -1
- package/lib/cjs/LocalhostIpcHost.js.map +1 -1
- package/lib/cjs/LockControl.d.ts +85 -1
- package/lib/cjs/LockControl.d.ts.map +1 -1
- package/lib/cjs/LockControl.js.map +1 -1
- package/lib/cjs/Material.d.ts +8 -1
- package/lib/cjs/Material.d.ts.map +1 -1
- package/lib/cjs/Material.js +6 -12
- package/lib/cjs/Material.js.map +1 -1
- package/lib/cjs/Model.d.ts +59 -20
- package/lib/cjs/Model.d.ts.map +1 -1
- package/lib/cjs/Model.js +38 -80
- package/lib/cjs/Model.js.map +1 -1
- package/lib/cjs/NativeAppStorage.js.map +1 -1
- package/lib/cjs/NativeHost.js.map +1 -1
- package/lib/cjs/NavigationRelationship.js.map +1 -1
- package/lib/cjs/PromiseMemoizer.js.map +1 -1
- package/lib/cjs/PropertyStore.js.map +1 -1
- package/lib/cjs/Relationship.d.ts +72 -7
- package/lib/cjs/Relationship.d.ts.map +1 -1
- package/lib/cjs/Relationship.js +39 -21
- package/lib/cjs/Relationship.js.map +1 -1
- package/lib/cjs/RpcBackend.js.map +1 -1
- package/lib/cjs/SQLiteDb.js.map +1 -1
- package/lib/cjs/Schema.js.map +1 -1
- package/lib/cjs/SchemaSync.js +4 -4
- package/lib/cjs/SchemaSync.js.map +1 -1
- package/lib/cjs/SchemaUtils.js.map +1 -1
- package/lib/cjs/SheetIndex.d.ts +9 -0
- package/lib/cjs/SheetIndex.d.ts.map +1 -1
- package/lib/cjs/SheetIndex.js +38 -35
- package/lib/cjs/SheetIndex.js.map +1 -1
- package/lib/cjs/SqliteChangesetReader.js.map +1 -1
- package/lib/cjs/SqliteStatement.js.map +1 -1
- package/lib/cjs/StashManager.js +1 -1
- package/lib/cjs/StashManager.js.map +1 -1
- package/lib/cjs/Texture.d.ts +6 -0
- package/lib/cjs/Texture.d.ts.map +1 -1
- package/lib/cjs/Texture.js +6 -14
- package/lib/cjs/Texture.js.map +1 -1
- package/lib/cjs/TileStorage.js.map +1 -1
- package/lib/cjs/TxnManager.d.ts +105 -9
- package/lib/cjs/TxnManager.d.ts.map +1 -1
- package/lib/cjs/TxnManager.js +194 -15
- package/lib/cjs/TxnManager.js.map +1 -1
- package/lib/cjs/ViewDefinition.d.ts +21 -1
- package/lib/cjs/ViewDefinition.d.ts.map +1 -1
- package/lib/cjs/ViewDefinition.js +27 -66
- package/lib/cjs/ViewDefinition.js.map +1 -1
- package/lib/cjs/ViewStateHydrator.js.map +1 -1
- package/lib/cjs/ViewStore.js.map +1 -1
- package/lib/cjs/annotations/ElementDrivesTextAnnotation.d.ts +14 -6
- package/lib/cjs/annotations/ElementDrivesTextAnnotation.d.ts.map +1 -1
- package/lib/cjs/annotations/ElementDrivesTextAnnotation.js +33 -27
- package/lib/cjs/annotations/ElementDrivesTextAnnotation.js.map +1 -1
- package/lib/cjs/annotations/FrameGeometry.js.map +1 -1
- package/lib/cjs/annotations/LeaderGeometry.js.map +1 -1
- package/lib/cjs/annotations/TextAnnotationElement.d.ts.map +1 -1
- package/lib/cjs/annotations/TextAnnotationElement.js +6 -5
- package/lib/cjs/annotations/TextAnnotationElement.js.map +1 -1
- package/lib/cjs/annotations/TextAnnotationGeometry.js.map +1 -1
- package/lib/cjs/annotations/TextBlockGeometry.js.map +1 -1
- package/lib/cjs/annotations/TextBlockLayout.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 +1 -0
- package/lib/cjs/core-backend.d.ts.map +1 -1
- package/lib/cjs/core-backend.js +1 -0
- package/lib/cjs/core-backend.js.map +1 -1
- package/lib/cjs/domains/FunctionalElements.d.ts +6 -2
- package/lib/cjs/domains/FunctionalElements.d.ts.map +1 -1
- package/lib/cjs/domains/FunctionalElements.js +8 -13
- package/lib/cjs/domains/FunctionalElements.js.map +1 -1
- package/lib/cjs/domains/FunctionalSchema.js.map +1 -1
- package/lib/cjs/domains/GenericElements.d.ts +11 -4
- package/lib/cjs/domains/GenericElements.d.ts.map +1 -1
- package/lib/cjs/domains/GenericElements.js +13 -24
- package/lib/cjs/domains/GenericElements.js.map +1 -1
- package/lib/cjs/domains/GenericSchema.js.map +1 -1
- package/lib/cjs/internal/ChangesetConflictArgs.js.map +1 -1
- package/lib/cjs/internal/ChannelAdmin.d.ts +15 -0
- package/lib/cjs/internal/ChannelAdmin.d.ts.map +1 -1
- package/lib/cjs/internal/ChannelAdmin.js +5 -3
- package/lib/cjs/internal/ChannelAdmin.js.map +1 -1
- package/lib/cjs/internal/ElementLRUCache.js.map +1 -1
- package/lib/cjs/internal/FontFileImpl.js.map +1 -1
- package/lib/cjs/internal/HubMock.d.ts +2 -0
- package/lib/cjs/internal/HubMock.d.ts.map +1 -1
- package/lib/cjs/internal/HubMock.js +7 -0
- package/lib/cjs/internal/HubMock.js.map +1 -1
- package/lib/cjs/internal/IModelDbFontsImpl.js.map +1 -1
- package/lib/cjs/internal/IntegrityCheck.js.map +1 -1
- package/lib/cjs/internal/NativePlatform.js.map +1 -1
- package/lib/cjs/internal/NoLocks.d.ts.map +1 -1
- package/lib/cjs/internal/NoLocks.js +6 -0
- package/lib/cjs/internal/NoLocks.js.map +1 -1
- package/lib/cjs/internal/OnlineStatus.js.map +1 -1
- package/lib/cjs/internal/ServerBasedLocks.d.ts +12 -0
- package/lib/cjs/internal/ServerBasedLocks.d.ts.map +1 -1
- package/lib/cjs/internal/ServerBasedLocks.js +285 -4
- package/lib/cjs/internal/ServerBasedLocks.js.map +1 -1
- package/lib/cjs/internal/Symbols.d.ts +4 -0
- package/lib/cjs/internal/Symbols.d.ts.map +1 -1
- package/lib/cjs/internal/Symbols.js +5 -1
- package/lib/cjs/internal/Symbols.js.map +1 -1
- package/lib/cjs/internal/annotations/fields.d.ts +3 -2
- package/lib/cjs/internal/annotations/fields.d.ts.map +1 -1
- package/lib/cjs/internal/annotations/fields.js +7 -6
- package/lib/cjs/internal/annotations/fields.js.map +1 -1
- package/lib/cjs/internal/cross-package.js.map +1 -1
- package/lib/cjs/internal/workspace/SettingsEditorImpl.d.ts +18 -3
- package/lib/cjs/internal/workspace/SettingsEditorImpl.d.ts.map +1 -1
- package/lib/cjs/internal/workspace/SettingsEditorImpl.js +49 -242
- package/lib/cjs/internal/workspace/SettingsEditorImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/SettingsImpl.d.ts.map +1 -1
- package/lib/cjs/internal/workspace/SettingsImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/SettingsSchemasImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceImpl.d.ts +0 -1
- package/lib/cjs/internal/workspace/WorkspaceImpl.d.ts.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceImpl.js +70 -41
- package/lib/cjs/internal/workspace/WorkspaceImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceSqliteDb.js.map +1 -1
- package/lib/cjs/rpc/multipart.js.map +1 -1
- package/lib/cjs/rpc/tracing.js.map +1 -1
- package/lib/cjs/rpc/web/logging.js.map +1 -1
- package/lib/cjs/rpc/web/request.js.map +1 -1
- package/lib/cjs/rpc/web/response.js.map +1 -1
- package/lib/cjs/rpc-impl/DevToolsRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
- package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
- package/lib/cjs/workspace/Settings.d.ts +11 -5
- package/lib/cjs/workspace/Settings.d.ts.map +1 -1
- package/lib/cjs/workspace/Settings.js.map +1 -1
- package/lib/cjs/workspace/SettingsDb.d.ts +20 -99
- package/lib/cjs/workspace/SettingsDb.d.ts.map +1 -1
- package/lib/cjs/workspace/SettingsDb.js +23 -7
- package/lib/cjs/workspace/SettingsDb.js.map +1 -1
- package/lib/cjs/workspace/SettingsEditor.d.ts +40 -226
- package/lib/cjs/workspace/SettingsEditor.d.ts.map +1 -1
- package/lib/cjs/workspace/SettingsEditor.js +86 -25
- package/lib/cjs/workspace/SettingsEditor.js.map +1 -1
- package/lib/cjs/workspace/SettingsSchemas.js.map +1 -1
- package/lib/cjs/workspace/Workspace.d.ts +7 -11
- package/lib/cjs/workspace/Workspace.d.ts.map +1 -1
- package/lib/cjs/workspace/Workspace.js.map +1 -1
- package/lib/cjs/workspace/WorkspaceEditor.d.ts +14 -0
- package/lib/cjs/workspace/WorkspaceEditor.d.ts.map +1 -1
- package/lib/cjs/workspace/WorkspaceEditor.js +1 -1
- package/lib/cjs/workspace/WorkspaceEditor.js.map +1 -1
- package/lib/esm/BackendHubAccess.d.ts +38 -0
- package/lib/esm/BackendHubAccess.d.ts.map +1 -1
- package/lib/esm/BackendHubAccess.js.map +1 -1
- package/lib/esm/BackendLoggerCategory.js.map +1 -1
- package/lib/esm/BisCoreSchema.js.map +1 -1
- package/lib/esm/BlobContainerService.js.map +1 -1
- package/lib/esm/BriefcaseManager.js +3 -3
- package/lib/esm/BriefcaseManager.js.map +1 -1
- package/lib/esm/CatalogDb.js.map +1 -1
- package/lib/esm/Category.d.ts +37 -7
- package/lib/esm/Category.d.ts.map +1 -1
- package/lib/esm/Category.js +33 -42
- package/lib/esm/Category.js.map +1 -1
- package/lib/esm/ChangeSummaryManager.js +2 -2
- package/lib/esm/ChangeSummaryManager.js.map +1 -1
- package/lib/esm/ChangedElementsDb.js.map +1 -1
- package/lib/esm/ChangesetECAdaptor.d.ts.map +1 -1
- package/lib/esm/ChangesetECAdaptor.js +253 -250
- package/lib/esm/ChangesetECAdaptor.js.map +1 -1
- package/lib/esm/ChannelControl.d.ts +29 -0
- package/lib/esm/ChannelControl.d.ts.map +1 -1
- package/lib/esm/ChannelControl.js.map +1 -1
- package/lib/esm/CheckpointManager.js +1 -1
- package/lib/esm/CheckpointManager.js.map +1 -1
- package/lib/esm/ClassRegistry.js +5 -5
- package/lib/esm/ClassRegistry.js.map +1 -1
- package/lib/esm/CloudSqlite.d.ts +1 -1
- package/lib/esm/CloudSqlite.d.ts.map +1 -1
- package/lib/esm/CloudSqlite.js +69 -14
- package/lib/esm/CloudSqlite.js.map +1 -1
- package/lib/esm/CodeService.js.map +1 -1
- package/lib/esm/CodeSpecs.d.ts +32 -3
- package/lib/esm/CodeSpecs.d.ts.map +1 -1
- package/lib/esm/CodeSpecs.js +49 -21
- package/lib/esm/CodeSpecs.js.map +1 -1
- package/lib/esm/ConcurrentQuery.js.map +1 -1
- package/lib/esm/CustomViewState3dCreator.js.map +1 -1
- package/lib/esm/DevTools.js.map +1 -1
- package/lib/esm/DisplayStyle.d.ts +18 -3
- package/lib/esm/DisplayStyle.d.ts.map +1 -1
- package/lib/esm/DisplayStyle.js +10 -21
- package/lib/esm/DisplayStyle.js.map +1 -1
- package/lib/esm/ECDb.js.map +1 -1
- package/lib/esm/ECSchemaXmlContext.js.map +1 -1
- package/lib/esm/ECSqlRowExecutor.js.map +1 -1
- package/lib/esm/ECSqlStatement.js.map +1 -1
- package/lib/esm/ECSqlSyncReader.js.map +1 -1
- package/lib/esm/EditTxn.d.ts +262 -0
- package/lib/esm/EditTxn.d.ts.map +1 -0
- package/lib/esm/EditTxn.js +543 -0
- package/lib/esm/EditTxn.js.map +1 -0
- package/lib/esm/Element.d.ts +74 -5
- package/lib/esm/Element.d.ts.map +1 -1
- package/lib/esm/Element.js +64 -76
- package/lib/esm/Element.js.map +1 -1
- package/lib/esm/ElementAspect.d.ts +10 -0
- package/lib/esm/ElementAspect.d.ts.map +1 -1
- package/lib/esm/ElementAspect.js +22 -13
- package/lib/esm/ElementAspect.js.map +1 -1
- package/lib/esm/ElementGraphics.js.map +1 -1
- package/lib/esm/ElementTreeWalker.d.ts +56 -3
- package/lib/esm/ElementTreeWalker.d.ts.map +1 -1
- package/lib/esm/ElementTreeWalker.js +53 -40
- package/lib/esm/ElementTreeWalker.js.map +1 -1
- package/lib/esm/Entity.js.map +1 -1
- package/lib/esm/EntityReferences.js.map +1 -1
- package/lib/esm/ExportGraphics.js.map +1 -1
- package/lib/esm/ExternalSource.d.ts +11 -2
- package/lib/esm/ExternalSource.d.ts.map +1 -1
- package/lib/esm/ExternalSource.js +10 -8
- package/lib/esm/ExternalSource.js.map +1 -1
- package/lib/esm/FontFile.js.map +1 -1
- package/lib/esm/GeoCoordConfig.js.map +1 -1
- package/lib/esm/GeographicCRSServices.js.map +1 -1
- package/lib/esm/GeometrySummary.js +47 -47
- package/lib/esm/GeometrySummary.js.map +1 -1
- package/lib/esm/IModelDb.d.ts +66 -22
- package/lib/esm/IModelDb.d.ts.map +1 -1
- package/lib/esm/IModelDb.js +185 -299
- package/lib/esm/IModelDb.js.map +1 -1
- package/lib/esm/IModelDbFonts.js.map +1 -1
- package/lib/esm/IModelElementCloneContext.js.map +1 -1
- package/lib/esm/IModelHost.d.ts +58 -1
- package/lib/esm/IModelHost.d.ts.map +1 -1
- package/lib/esm/IModelHost.js +91 -2
- package/lib/esm/IModelHost.js.map +1 -1
- package/lib/esm/IModelIncrementalSchemaLocater.js.map +1 -1
- package/lib/esm/IModelJsFs.js.map +1 -1
- package/lib/esm/ImageSourceConversion.js.map +1 -1
- package/lib/esm/IpcHost.d.ts.map +1 -1
- package/lib/esm/IpcHost.js +16 -7
- package/lib/esm/IpcHost.js.map +1 -1
- package/lib/esm/LineStyle.d.ts +47 -7
- package/lib/esm/LineStyle.d.ts.map +1 -1
- package/lib/esm/LineStyle.js +38 -33
- package/lib/esm/LineStyle.js.map +1 -1
- package/lib/esm/LocalHub.js +1 -1
- package/lib/esm/LocalHub.js.map +1 -1
- package/lib/esm/LocalhostIpcHost.js.map +1 -1
- package/lib/esm/LockControl.d.ts +85 -1
- package/lib/esm/LockControl.d.ts.map +1 -1
- package/lib/esm/LockControl.js.map +1 -1
- package/lib/esm/Material.d.ts +8 -1
- package/lib/esm/Material.d.ts.map +1 -1
- package/lib/esm/Material.js +6 -12
- package/lib/esm/Material.js.map +1 -1
- package/lib/esm/Model.d.ts +59 -20
- package/lib/esm/Model.d.ts.map +1 -1
- package/lib/esm/Model.js +39 -81
- package/lib/esm/Model.js.map +1 -1
- package/lib/esm/NativeAppStorage.js.map +1 -1
- package/lib/esm/NativeHost.js.map +1 -1
- package/lib/esm/NavigationRelationship.js.map +1 -1
- package/lib/esm/PromiseMemoizer.js.map +1 -1
- package/lib/esm/PropertyStore.js.map +1 -1
- package/lib/esm/Relationship.d.ts +72 -7
- package/lib/esm/Relationship.d.ts.map +1 -1
- package/lib/esm/Relationship.js +40 -22
- package/lib/esm/Relationship.js.map +1 -1
- package/lib/esm/RpcBackend.js.map +1 -1
- package/lib/esm/SQLiteDb.js.map +1 -1
- package/lib/esm/Schema.js.map +1 -1
- package/lib/esm/SchemaSync.js +5 -5
- package/lib/esm/SchemaSync.js.map +1 -1
- package/lib/esm/SchemaUtils.js.map +1 -1
- package/lib/esm/SheetIndex.d.ts +9 -0
- package/lib/esm/SheetIndex.d.ts.map +1 -1
- package/lib/esm/SheetIndex.js +38 -35
- package/lib/esm/SheetIndex.js.map +1 -1
- package/lib/esm/SqliteChangesetReader.js.map +1 -1
- package/lib/esm/SqliteStatement.js.map +1 -1
- package/lib/esm/StashManager.js +1 -1
- package/lib/esm/StashManager.js.map +1 -1
- package/lib/esm/Texture.d.ts +6 -0
- package/lib/esm/Texture.d.ts.map +1 -1
- package/lib/esm/Texture.js +6 -14
- package/lib/esm/Texture.js.map +1 -1
- package/lib/esm/TileStorage.js.map +1 -1
- package/lib/esm/TxnManager.d.ts +105 -9
- package/lib/esm/TxnManager.d.ts.map +1 -1
- package/lib/esm/TxnManager.js +194 -15
- package/lib/esm/TxnManager.js.map +1 -1
- package/lib/esm/ViewDefinition.d.ts +21 -1
- package/lib/esm/ViewDefinition.d.ts.map +1 -1
- package/lib/esm/ViewDefinition.js +27 -66
- package/lib/esm/ViewDefinition.js.map +1 -1
- package/lib/esm/ViewStateHydrator.js.map +1 -1
- package/lib/esm/ViewStore.js.map +1 -1
- package/lib/esm/annotations/ElementDrivesTextAnnotation.d.ts +14 -6
- package/lib/esm/annotations/ElementDrivesTextAnnotation.d.ts.map +1 -1
- package/lib/esm/annotations/ElementDrivesTextAnnotation.js +33 -27
- package/lib/esm/annotations/ElementDrivesTextAnnotation.js.map +1 -1
- package/lib/esm/annotations/FrameGeometry.js.map +1 -1
- package/lib/esm/annotations/LeaderGeometry.js.map +1 -1
- package/lib/esm/annotations/TextAnnotationElement.d.ts.map +1 -1
- package/lib/esm/annotations/TextAnnotationElement.js +6 -5
- package/lib/esm/annotations/TextAnnotationElement.js.map +1 -1
- package/lib/esm/annotations/TextAnnotationGeometry.js.map +1 -1
- package/lib/esm/annotations/TextBlockGeometry.js.map +1 -1
- package/lib/esm/annotations/TextBlockLayout.js.map +1 -1
- package/lib/esm/core-backend.d.ts +1 -0
- package/lib/esm/core-backend.d.ts.map +1 -1
- package/lib/esm/core-backend.js +1 -0
- package/lib/esm/core-backend.js.map +1 -1
- package/lib/esm/domains/FunctionalElements.d.ts +6 -2
- package/lib/esm/domains/FunctionalElements.d.ts.map +1 -1
- package/lib/esm/domains/FunctionalElements.js +8 -13
- package/lib/esm/domains/FunctionalElements.js.map +1 -1
- package/lib/esm/domains/FunctionalSchema.js.map +1 -1
- package/lib/esm/domains/GenericElements.d.ts +11 -4
- package/lib/esm/domains/GenericElements.d.ts.map +1 -1
- package/lib/esm/domains/GenericElements.js +13 -24
- package/lib/esm/domains/GenericElements.js.map +1 -1
- package/lib/esm/domains/GenericSchema.js.map +1 -1
- package/lib/esm/internal/ChangesetConflictArgs.js.map +1 -1
- package/lib/esm/internal/ChannelAdmin.d.ts +15 -0
- package/lib/esm/internal/ChannelAdmin.d.ts.map +1 -1
- package/lib/esm/internal/ChannelAdmin.js +6 -4
- package/lib/esm/internal/ChannelAdmin.js.map +1 -1
- package/lib/esm/internal/ElementLRUCache.js.map +1 -1
- package/lib/esm/internal/FontFileImpl.js.map +1 -1
- package/lib/esm/internal/HubMock.d.ts +2 -0
- package/lib/esm/internal/HubMock.d.ts.map +1 -1
- package/lib/esm/internal/HubMock.js +7 -0
- package/lib/esm/internal/HubMock.js.map +1 -1
- package/lib/esm/internal/IModelDbFontsImpl.js.map +1 -1
- package/lib/esm/internal/IntegrityCheck.js.map +1 -1
- package/lib/esm/internal/NativePlatform.js.map +1 -1
- package/lib/esm/internal/NoLocks.d.ts.map +1 -1
- package/lib/esm/internal/NoLocks.js +6 -0
- package/lib/esm/internal/NoLocks.js.map +1 -1
- package/lib/esm/internal/OnlineStatus.js.map +1 -1
- package/lib/esm/internal/ServerBasedLocks.d.ts +12 -0
- package/lib/esm/internal/ServerBasedLocks.d.ts.map +1 -1
- package/lib/esm/internal/ServerBasedLocks.js +286 -5
- package/lib/esm/internal/ServerBasedLocks.js.map +1 -1
- package/lib/esm/internal/Symbols.d.ts +4 -0
- package/lib/esm/internal/Symbols.d.ts.map +1 -1
- package/lib/esm/internal/Symbols.js +4 -0
- package/lib/esm/internal/Symbols.js.map +1 -1
- package/lib/esm/internal/annotations/fields.d.ts +3 -2
- package/lib/esm/internal/annotations/fields.d.ts.map +1 -1
- package/lib/esm/internal/annotations/fields.js +7 -6
- package/lib/esm/internal/annotations/fields.js.map +1 -1
- package/lib/esm/internal/cross-package.js.map +1 -1
- package/lib/esm/internal/workspace/SettingsEditorImpl.d.ts +18 -3
- package/lib/esm/internal/workspace/SettingsEditorImpl.d.ts.map +1 -1
- package/lib/esm/internal/workspace/SettingsEditorImpl.js +52 -246
- package/lib/esm/internal/workspace/SettingsEditorImpl.js.map +1 -1
- package/lib/esm/internal/workspace/SettingsImpl.d.ts.map +1 -1
- package/lib/esm/internal/workspace/SettingsImpl.js.map +1 -1
- package/lib/esm/internal/workspace/SettingsSchemasImpl.js.map +1 -1
- package/lib/esm/internal/workspace/WorkspaceImpl.d.ts +0 -1
- package/lib/esm/internal/workspace/WorkspaceImpl.d.ts.map +1 -1
- package/lib/esm/internal/workspace/WorkspaceImpl.js +71 -41
- package/lib/esm/internal/workspace/WorkspaceImpl.js.map +1 -1
- package/lib/esm/internal/workspace/WorkspaceSqliteDb.js.map +1 -1
- package/lib/esm/rpc/multipart.js.map +1 -1
- package/lib/esm/rpc/tracing.js.map +1 -1
- package/lib/esm/rpc/web/logging.js.map +1 -1
- package/lib/esm/rpc/web/request.js.map +1 -1
- package/lib/esm/rpc/web/response.js.map +1 -1
- package/lib/esm/rpc-impl/DevToolsRpcImpl.js.map +1 -1
- package/lib/esm/rpc-impl/IModelReadRpcImpl.js.map +1 -1
- package/lib/esm/rpc-impl/IModelTileRpcImpl.js.map +1 -1
- package/lib/esm/rpc-impl/RpcBriefcaseUtility.d.ts.map +1 -1
- package/lib/esm/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
- package/lib/esm/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
- package/lib/esm/test/AdvancedEqual.js.map +1 -1
- package/lib/esm/test/AnnotationTestUtils.js.map +1 -1
- package/lib/esm/test/AttachDb.test.js +11 -11
- package/lib/esm/test/AttachDb.test.js.map +1 -1
- package/lib/esm/test/ElementDrivesElement.test.d.ts +20 -19
- package/lib/esm/test/ElementDrivesElement.test.d.ts.map +1 -1
- package/lib/esm/test/ElementDrivesElement.test.js +134 -119
- package/lib/esm/test/ElementDrivesElement.test.js.map +1 -1
- package/lib/esm/test/ElementLRUCache.test.js.map +1 -1
- package/lib/esm/test/GeometryTestUtil.js.map +1 -1
- package/lib/esm/test/IModelHost.test.js +56 -2
- package/lib/esm/test/IModelHost.test.js.map +1 -1
- package/lib/esm/test/IModelTestUtils.d.ts +23 -23
- package/lib/esm/test/IModelTestUtils.d.ts.map +1 -1
- package/lib/esm/test/IModelTestUtils.js +466 -449
- package/lib/esm/test/IModelTestUtils.js.map +1 -1
- package/lib/esm/test/ImageSourceConversion.test.js.map +1 -1
- package/lib/esm/test/IpcHost.test.js.map +1 -1
- package/lib/esm/test/KnownTestLocations.js.map +1 -1
- package/lib/esm/test/PrintElementTree.js.map +1 -1
- package/lib/esm/test/PropertyDb.test.js +2 -2
- package/lib/esm/test/PropertyDb.test.js.map +1 -1
- package/lib/esm/test/RevisionUtility.js.map +1 -1
- package/lib/esm/test/SchemaUtils.test.js +25 -25
- package/lib/esm/test/SchemaUtils.test.js.map +1 -1
- package/lib/esm/test/SequentialLogMatcher.js.map +1 -1
- package/lib/esm/test/SquashSchemaAndDataChanges.test.js +156 -147
- package/lib/esm/test/SquashSchemaAndDataChanges.test.js.map +1 -1
- package/lib/esm/test/TestChangeSetUtility.d.ts.map +1 -1
- package/lib/esm/test/TestChangeSetUtility.js +11 -7
- package/lib/esm/test/TestChangeSetUtility.js.map +1 -1
- package/lib/esm/test/TestEditTxn.d.ts +8 -0
- package/lib/esm/test/TestEditTxn.d.ts.map +1 -0
- package/lib/esm/test/TestEditTxn.js +34 -0
- package/lib/esm/test/TestEditTxn.js.map +1 -0
- package/lib/esm/test/TestUtils.d.ts +1 -0
- package/lib/esm/test/TestUtils.d.ts.map +1 -1
- package/lib/esm/test/TestUtils.js +8 -1
- package/lib/esm/test/TestUtils.js.map +1 -1
- package/lib/esm/test/annotations/Fields.test.js +135 -143
- package/lib/esm/test/annotations/Fields.test.js.map +1 -1
- package/lib/esm/test/annotations/FrameGeometry.test.js.map +1 -1
- package/lib/esm/test/annotations/LeaderGeometry.test.js.map +1 -1
- package/lib/esm/test/annotations/TextAnnotation.test.js +156 -99
- package/lib/esm/test/annotations/TextAnnotation.test.js.map +1 -1
- package/lib/esm/test/annotations/TextBlock.test.js +5 -3
- package/lib/esm/test/annotations/TextBlock.test.js.map +1 -1
- package/lib/esm/test/assets/IncrementalSchemaLocater/configs/old.config.js.map +1 -1
- package/lib/esm/test/assets/IncrementalSchemaLocater/configs/simple.config.js.map +1 -1
- package/lib/esm/test/categories/Category.test.js +63 -3
- package/lib/esm/test/categories/Category.test.js.map +1 -1
- package/lib/esm/test/codespec/CodeSpec.test.js +88 -5
- package/lib/esm/test/codespec/CodeSpec.test.js.map +1 -1
- package/lib/esm/test/ecdb/CTE.test.js +88 -88
- package/lib/esm/test/ecdb/CTE.test.js.map +1 -1
- package/lib/esm/test/ecdb/ConcurrentQuery.test.js +19 -19
- package/lib/esm/test/ecdb/ConcurrentQuery.test.js.map +1 -1
- package/lib/esm/test/ecdb/ConcurrentQueryLoad.test.js +15 -15
- package/lib/esm/test/ecdb/ConcurrentQueryLoad.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECDb.test.js +72 -72
- package/lib/esm/test/ecdb/ECDb.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECDbTestHelper.js.map +1 -1
- package/lib/esm/test/ecdb/ECSchemaXmlContext.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlAst.test.js +68 -67
- package/lib/esm/test/ecdb/ECSqlAst.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlQuery.test.js +6 -6
- package/lib/esm/test/ecdb/ECSqlQuery.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlStatement.test.js +332 -333
- package/lib/esm/test/ecdb/ECSqlStatement.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlSyncReader.test.js.map +1 -1
- package/lib/esm/test/ecdb/QueryReaders.test.js +47 -44
- package/lib/esm/test/ecdb/QueryReaders.test.js.map +1 -1
- package/lib/esm/test/ecdb/SqliteStatement.test.js +2 -2
- package/lib/esm/test/ecdb/SqliteStatement.test.js.map +1 -1
- package/lib/esm/test/ecsql/dataset/ECSqlDatasets.d.ts.map +1 -1
- package/lib/esm/test/ecsql/dataset/ECSqlDatasets.js +30 -28
- package/lib/esm/test/ecsql/dataset/ECSqlDatasets.js.map +1 -1
- package/lib/esm/test/ecsql/src/ECSqlTestGenerator.js +21 -21
- package/lib/esm/test/ecsql/src/ECSqlTestGenerator.js.map +1 -1
- package/lib/esm/test/ecsql/src/ECSqlTestParser.js.map +1 -1
- package/lib/esm/test/ecsql/src/ECSqlTestRunner.test.js.map +1 -1
- package/lib/esm/test/element/DeleteDefinitionElements.test.js +159 -143
- package/lib/esm/test/element/DeleteDefinitionElements.test.js.map +1 -1
- package/lib/esm/test/element/ElementAspect.test.js +90 -82
- package/lib/esm/test/element/ElementAspect.test.js.map +1 -1
- package/lib/esm/test/element/ElementDependencyGraph.test.d.ts.map +1 -1
- package/lib/esm/test/element/ElementDependencyGraph.test.js +51 -43
- package/lib/esm/test/element/ElementDependencyGraph.test.js.map +1 -1
- package/lib/esm/test/element/ElementRoundTrip.test.js +176 -177
- package/lib/esm/test/element/ElementRoundTrip.test.js.map +1 -1
- package/lib/esm/test/element/ExcludedElements.test.js +2 -2
- package/lib/esm/test/element/ExcludedElements.test.js.map +1 -1
- package/lib/esm/test/element/ExternalSource.test.js +40 -38
- package/lib/esm/test/element/ExternalSource.test.js.map +1 -1
- package/lib/esm/test/element/NullStructArray.test.js +23 -22
- package/lib/esm/test/element/NullStructArray.test.js.map +1 -1
- package/lib/esm/test/element/ProjectInformationRecord.test.js +5 -2
- package/lib/esm/test/element/ProjectInformationRecord.test.js.map +1 -1
- package/lib/esm/test/element/SheetInformationAspect.test.js +43 -11
- package/lib/esm/test/element/SheetInformationAspect.test.js.map +1 -1
- package/lib/esm/test/element/UrlLink.test.js +2 -2
- package/lib/esm/test/element/UrlLink.test.js.map +1 -1
- package/lib/esm/test/font/FontFile.test.js.map +1 -1
- package/lib/esm/test/font/IModelDbFonts.test.js +87 -73
- package/lib/esm/test/font/IModelDbFonts.test.js.map +1 -1
- package/lib/esm/test/hubaccess/ApplyChangeset.test.js +194 -155
- package/lib/esm/test/hubaccess/ApplyChangeset.test.js.map +1 -1
- package/lib/esm/test/hubaccess/BriefcaseManager.test.js +2 -4
- package/lib/esm/test/hubaccess/BriefcaseManager.test.js.map +1 -1
- package/lib/esm/test/hubaccess/CheckpointManager.test.js.map +1 -1
- package/lib/esm/test/hubaccess/Rebase.test.js +369 -303
- package/lib/esm/test/hubaccess/Rebase.test.js.map +1 -1
- package/lib/esm/test/hubaccess/SemanticRebase.test.js +467 -392
- package/lib/esm/test/hubaccess/SemanticRebase.test.js.map +1 -1
- package/lib/esm/test/imageData.js.map +1 -1
- package/lib/esm/test/imodel/Code.test.js +31 -31
- package/lib/esm/test/imodel/Code.test.js.map +1 -1
- package/lib/esm/test/imodel/ElementTreeWalker.test.js +57 -48
- package/lib/esm/test/imodel/ElementTreeWalker.test.js.map +1 -1
- package/lib/esm/test/imodel/GetTextureImage.test.js.map +1 -1
- package/lib/esm/test/imodel/IModel.test.js +463 -388
- package/lib/esm/test/imodel/IModel.test.js.map +1 -1
- package/lib/esm/test/imodel/ProjectExtents.test.js +2 -2
- package/lib/esm/test/imodel/ProjectExtents.test.js.map +1 -1
- package/lib/esm/test/imodel/SchemaXmlImport.test.js +13 -13
- package/lib/esm/test/imodel/SchemaXmlImport.test.js.map +1 -1
- package/lib/esm/test/incrementalSchemaLocater/ECSqlQueries.test.js.map +1 -1
- package/lib/esm/test/incrementalSchemaLocater/IncrementalLoading.test.js.map +1 -1
- package/lib/esm/test/incrementalSchemaLocater/TestContext.d.ts.map +1 -1
- package/lib/esm/test/incrementalSchemaLocater/TestContext.js +2 -2
- package/lib/esm/test/incrementalSchemaLocater/TestContext.js.map +1 -1
- package/lib/esm/test/index.d.ts +1 -0
- package/lib/esm/test/index.d.ts.map +1 -1
- package/lib/esm/test/index.js +1 -0
- package/lib/esm/test/index.js.map +1 -1
- package/lib/esm/test/misc/DevTools.test.js.map +1 -1
- package/lib/esm/test/misc/EntitySubClasses.test.js.map +1 -1
- package/lib/esm/test/misc/GeoServices.test.js.map +1 -1
- package/lib/esm/test/misc/PromiseMemoizer.test.js.map +1 -1
- package/lib/esm/test/native/DgnDbWorker.test.js.map +1 -1
- package/lib/esm/test/rpc/response.test.js.map +1 -1
- package/lib/esm/test/schema/ClassRegistry.test.js +122 -121
- package/lib/esm/test/schema/ClassRegistry.test.js.map +1 -1
- package/lib/esm/test/schema/FunctionalDomain.test.js +36 -34
- package/lib/esm/test/schema/FunctionalDomain.test.js.map +1 -1
- package/lib/esm/test/schema/GenericDomain.test.js +114 -94
- package/lib/esm/test/schema/GenericDomain.test.js.map +1 -1
- package/lib/esm/test/schema/IModelSchemaContext.test.js +11 -10
- package/lib/esm/test/schema/IModelSchemaContext.test.js.map +1 -1
- package/lib/esm/test/schema/SchemaImportCallbacks.test.js +226 -211
- package/lib/esm/test/schema/SchemaImportCallbacks.test.js.map +1 -1
- package/lib/esm/test/sheetindex/SheetIndex.test.d.ts +1 -3
- package/lib/esm/test/sheetindex/SheetIndex.test.d.ts.map +1 -1
- package/lib/esm/test/sheetindex/SheetIndex.test.js +312 -247
- package/lib/esm/test/sheetindex/SheetIndex.test.js.map +1 -1
- package/lib/esm/test/standalone/ChangeMerge.test.js +101 -82
- package/lib/esm/test/standalone/ChangeMerge.test.js.map +1 -1
- package/lib/esm/test/standalone/ChangesetReader.test.js +242 -213
- package/lib/esm/test/standalone/ChangesetReader.test.js.map +1 -1
- package/lib/esm/test/standalone/CustomViewState3dCreator.test.js.map +1 -1
- package/lib/esm/test/standalone/DisplayStyle.test.js +43 -40
- package/lib/esm/test/standalone/DisplayStyle.test.js.map +1 -1
- package/lib/esm/test/standalone/Drawing.test.js +4 -3
- package/lib/esm/test/standalone/Drawing.test.js.map +1 -1
- package/lib/esm/test/standalone/EditTxn.test.d.ts +2 -0
- package/lib/esm/test/standalone/EditTxn.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/EditTxn.test.js +219 -0
- package/lib/esm/test/standalone/EditTxn.test.js.map +1 -0
- package/lib/esm/test/standalone/ElementGraphics.test.js.map +1 -1
- package/lib/esm/test/standalone/ElementMesh.test.js +16 -13
- package/lib/esm/test/standalone/ElementMesh.test.js.map +1 -1
- package/lib/esm/test/standalone/ExportGraphics.test.js +40 -34
- package/lib/esm/test/standalone/ExportGraphics.test.js.map +1 -1
- package/lib/esm/test/standalone/GeometryChangeEvents.test.js +11 -15
- package/lib/esm/test/standalone/GeometryChangeEvents.test.js.map +1 -1
- package/lib/esm/test/standalone/GeometryStream.test.js +212 -165
- package/lib/esm/test/standalone/GeometryStream.test.js.map +1 -1
- package/lib/esm/test/standalone/HubMock.test.js +31 -25
- package/lib/esm/test/standalone/HubMock.test.js.map +1 -1
- package/lib/esm/test/standalone/IModelLimits.test.js +11 -8
- package/lib/esm/test/standalone/IModelLimits.test.js.map +1 -1
- package/lib/esm/test/standalone/IModelWrite.test.d.ts +2 -2
- package/lib/esm/test/standalone/IModelWrite.test.d.ts.map +1 -1
- package/lib/esm/test/standalone/IModelWrite.test.js +211 -169
- package/lib/esm/test/standalone/IModelWrite.test.js.map +1 -1
- package/lib/esm/test/standalone/ITwinWorkspace.test.d.ts +2 -0
- package/lib/esm/test/standalone/ITwinWorkspace.test.d.ts.map +1 -0
- package/lib/esm/test/standalone/ITwinWorkspace.test.js +236 -0
- package/lib/esm/test/standalone/ITwinWorkspace.test.js.map +1 -0
- package/lib/esm/test/standalone/InlineGeometryPartReferences.test.js +25 -22
- package/lib/esm/test/standalone/InlineGeometryPartReferences.test.js.map +1 -1
- package/lib/esm/test/standalone/IntegrityCheck.test.js +20 -18
- package/lib/esm/test/standalone/IntegrityCheck.test.js.map +1 -1
- package/lib/esm/test/standalone/MergeConflict.test.d.ts +2 -2
- package/lib/esm/test/standalone/MergeConflict.test.d.ts.map +1 -1
- package/lib/esm/test/standalone/MergeConflict.test.js +49 -33
- package/lib/esm/test/standalone/MergeConflict.test.js.map +1 -1
- package/lib/esm/test/standalone/NativeAppStorage.test.js.map +1 -1
- package/lib/esm/test/standalone/RenderMaterialElement.test.js +5 -5
- package/lib/esm/test/standalone/RenderMaterialElement.test.js.map +1 -1
- package/lib/esm/test/standalone/RenderTimeline.test.js +3 -2
- package/lib/esm/test/standalone/RenderTimeline.test.js.map +1 -1
- package/lib/esm/test/standalone/SQLiteDb.test.js.map +1 -1
- package/lib/esm/test/standalone/SchemaUtils.test.js.map +1 -1
- package/lib/esm/test/standalone/SectionDrawing.test.js +7 -7
- package/lib/esm/test/standalone/SectionDrawing.test.js.map +1 -1
- package/lib/esm/test/standalone/ServerBasedLocks.test.js +928 -22
- package/lib/esm/test/standalone/ServerBasedLocks.test.js.map +1 -1
- package/lib/esm/test/standalone/Setting.test.js.map +1 -1
- package/lib/esm/test/standalone/Settings.test.js +26 -4
- package/lib/esm/test/standalone/Settings.test.js.map +1 -1
- package/lib/esm/test/standalone/SettingsSchemas.test.js +2 -1
- package/lib/esm/test/standalone/SettingsSchemas.test.js.map +1 -1
- package/lib/esm/test/standalone/SnapshotDb.test.js +3 -1
- package/lib/esm/test/standalone/SnapshotDb.test.js.map +1 -1
- package/lib/esm/test/standalone/StandaloneDb.test.js +27 -26
- package/lib/esm/test/standalone/StandaloneDb.test.js.map +1 -1
- package/lib/esm/test/standalone/Texture.test.js +5 -4
- package/lib/esm/test/standalone/Texture.test.js.map +1 -1
- package/lib/esm/test/standalone/TileCache.test.d.ts.map +1 -1
- package/lib/esm/test/standalone/TileCache.test.js +5 -3
- package/lib/esm/test/standalone/TileCache.test.js.map +1 -1
- package/lib/esm/test/standalone/TileTree.test.js +35 -31
- package/lib/esm/test/standalone/TileTree.test.js.map +1 -1
- package/lib/esm/test/standalone/TxnManager.test.js +700 -653
- package/lib/esm/test/standalone/TxnManager.test.js.map +1 -1
- package/lib/esm/test/standalone/ViewDefinition.test.js +295 -229
- package/lib/esm/test/standalone/ViewDefinition.test.js.map +1 -1
- package/lib/esm/test/standalone/ViewStoreDb.test.js.map +1 -1
- package/lib/esm/test/standalone/Workspace.test.js +72 -22
- package/lib/esm/test/standalone/Workspace.test.js.map +1 -1
- package/lib/esm/test/standalone/iModelDb.test.js.map +1 -1
- package/lib/esm/test/workspace/SettingsDb.test.js +28 -456
- package/lib/esm/test/workspace/SettingsDb.test.js.map +1 -1
- package/lib/esm/workspace/Settings.d.ts +11 -5
- package/lib/esm/workspace/Settings.d.ts.map +1 -1
- package/lib/esm/workspace/Settings.js.map +1 -1
- package/lib/esm/workspace/SettingsDb.d.ts +20 -99
- package/lib/esm/workspace/SettingsDb.d.ts.map +1 -1
- package/lib/esm/workspace/SettingsDb.js +20 -6
- package/lib/esm/workspace/SettingsDb.js.map +1 -1
- package/lib/esm/workspace/SettingsEditor.d.ts +40 -226
- package/lib/esm/workspace/SettingsEditor.d.ts.map +1 -1
- package/lib/esm/workspace/SettingsEditor.js +85 -24
- package/lib/esm/workspace/SettingsEditor.js.map +1 -1
- package/lib/esm/workspace/SettingsSchemas.js.map +1 -1
- package/lib/esm/workspace/Workspace.d.ts +7 -11
- package/lib/esm/workspace/Workspace.d.ts.map +1 -1
- package/lib/esm/workspace/Workspace.js.map +1 -1
- package/lib/esm/workspace/WorkspaceEditor.d.ts +14 -0
- package/lib/esm/workspace/WorkspaceEditor.d.ts.map +1 -1
- package/lib/esm/workspace/WorkspaceEditor.js +1 -1
- package/lib/esm/workspace/WorkspaceEditor.js.map +1 -1
- package/package.json +13 -13
- package/lib/cjs/internal/workspace/SettingsDbImpl.d.ts +0 -38
- package/lib/cjs/internal/workspace/SettingsDbImpl.d.ts.map +0 -1
- package/lib/cjs/internal/workspace/SettingsDbImpl.js +0 -108
- package/lib/cjs/internal/workspace/SettingsDbImpl.js.map +0 -1
- package/lib/cjs/internal/workspace/SettingsSqliteDb.d.ts +0 -14
- package/lib/cjs/internal/workspace/SettingsSqliteDb.d.ts.map +0 -1
- package/lib/cjs/internal/workspace/SettingsSqliteDb.js +0 -40
- package/lib/cjs/internal/workspace/SettingsSqliteDb.js.map +0 -1
- package/lib/esm/internal/workspace/SettingsDbImpl.d.ts +0 -38
- package/lib/esm/internal/workspace/SettingsDbImpl.d.ts.map +0 -1
- package/lib/esm/internal/workspace/SettingsDbImpl.js +0 -104
- package/lib/esm/internal/workspace/SettingsDbImpl.js.map +0 -1
- package/lib/esm/internal/workspace/SettingsSqliteDb.d.ts +0 -14
- package/lib/esm/internal/workspace/SettingsSqliteDb.d.ts.map +0 -1
- package/lib/esm/internal/workspace/SettingsSqliteDb.js +0 -36
- package/lib/esm/internal/workspace/SettingsSqliteDb.js.map +0 -1
|
@@ -1,109 +1,30 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Workspace
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
10
|
-
* @note Since the information is stored inside the [[SettingsDb]], it is versioned along with the rest of the contents.
|
|
11
|
-
* @beta
|
|
4
|
+
import type { WorkspaceDb, WorkspaceDbName } from "./Workspace";
|
|
5
|
+
/**
|
|
6
|
+
* The fixed db name used by [[WorkspaceDb]]'s meant to hold settings.
|
|
7
|
+
* [[Workspace.loadSettingsDictionary]] will treat rows in the 'strings' table as setting dictionary entries when [[WorkspaceDbSettingsProps.dbName]] matches this value.
|
|
8
|
+
* @see [[Workspace.loadSettingsDictionary]]
|
|
9
|
+
* @internal
|
|
12
10
|
*/
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
17
|
-
readonly settingsName: string;
|
|
18
|
-
/** A description of the contents of this [[SettingsDb]] to help users understand its purpose and appropriate usage. */
|
|
19
|
-
readonly description?: string;
|
|
20
|
-
/** The name of the person to contact with questions about this [[SettingsDb]]. */
|
|
21
|
-
readonly contactName?: string;
|
|
22
|
-
/** The name of the person who last modified this [[SettingsDb]]. */
|
|
23
|
-
readonly lastEditedBy?: string;
|
|
24
|
-
}
|
|
25
|
-
/** Properties that specify how to load a [[SettingsDb]] within a [[CloudSqliteContainer]].
|
|
26
|
-
* @beta
|
|
11
|
+
export declare const settingsWorkspaceDbName: WorkspaceDbName;
|
|
12
|
+
/** The db name type for the iTwin settings [[WorkspaceDb]].
|
|
13
|
+
* @internal
|
|
27
14
|
*/
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/** The [semver](https://github.com/npm/node-semver) version string or range for the desired [[SettingsDb]].
|
|
32
|
-
* If not specified, the latest available version is used.
|
|
33
|
-
*/
|
|
34
|
-
readonly version?: string;
|
|
35
|
-
}
|
|
36
|
-
/** Arguments for obtaining a [[SettingsDb]] from a previously-loaded container.
|
|
37
|
-
* @beta
|
|
15
|
+
export type SettingsDbName = typeof settingsWorkspaceDbName;
|
|
16
|
+
/** A [[WorkspaceDb]] whose name is the fixed iTwin settings db name.
|
|
17
|
+
* @internal
|
|
38
18
|
*/
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
readonly containerId: WorkspaceContainerId;
|
|
45
|
-
/** The priority to assign to dictionaries loaded from this [[SettingsDb]]. */
|
|
46
|
-
readonly priority: SettingsPriority;
|
|
47
|
-
/** The name of the [[SettingsDb]] to retrieve. Default: `"settings-db"`. */
|
|
48
|
-
readonly dbName?: WorkspaceDbName;
|
|
49
|
-
/** The semantic version string or range for the desired [[SettingsDb]].
|
|
50
|
-
* If not specified, the latest available version is used.
|
|
51
|
-
*/
|
|
52
|
-
readonly version?: string;
|
|
53
|
-
}
|
|
54
|
-
/** A CloudSQLite database dedicated to storing settings as key-value pairs. Unlike a general-purpose [[WorkspaceDb]],
|
|
55
|
-
* a `SettingsDb` restricts its API surface to settings-only operations, providing a focused interface
|
|
56
|
-
* for reading settings by name.
|
|
57
|
-
*
|
|
58
|
-
* Internally, all settings are stored in a single JSON blob. Each setting is a named entry in a [[SettingsContainer]].
|
|
59
|
-
*
|
|
60
|
-
* A `SettingsDb` resides in a [[CloudSqliteContainer]] and can be published to the cloud. Once published,
|
|
61
|
-
* the `SettingsDb` becomes immutable; however, multiple versions may be created to allow settings to evolve over time.
|
|
62
|
-
* @beta
|
|
19
|
+
export type SettingsDb = WorkspaceDb & {
|
|
20
|
+
readonly dbName: SettingsDbName;
|
|
21
|
+
};
|
|
22
|
+
/** Return true if a [[WorkspaceDb]] is a [[SettingsDb]].
|
|
23
|
+
* @internal
|
|
63
24
|
*/
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
[_implementationProhibited]: unknown;
|
|
67
|
-
/** The [[CloudSqliteContainer]] in which this database resides. */
|
|
68
|
-
readonly container: CloudSqliteContainer;
|
|
69
|
-
/** The base name of this SettingsDb, without version. */
|
|
70
|
-
readonly dbName: string;
|
|
71
|
-
/** The resolved [semver](https://github.com/npm/node-semver) version of this SettingsDb.
|
|
72
|
-
* @note For local (non-cloud) containers, this property returns `"0.0.0"`.
|
|
73
|
-
*/
|
|
74
|
-
readonly version: string;
|
|
75
|
-
/** The priority assigned to dictionaries loaded from this SettingsDb. */
|
|
76
|
-
readonly priority: SettingsPriority;
|
|
77
|
-
/** Whether the underlying database is currently open. */
|
|
78
|
-
readonly isOpen: boolean;
|
|
79
|
-
/** The manifest describing the contents of this SettingsDb. */
|
|
80
|
-
readonly manifest: SettingsDbManifest;
|
|
81
|
-
/** Open the underlying database for querying. When performing significant activity against a SettingsDb,
|
|
82
|
-
* open it before the operations and [[close]] it afterwards.
|
|
83
|
-
* @note Explicit open/close is a performance optimization for batches of operations. Individual methods like
|
|
84
|
-
* [[getSetting]] and [[getSettings]] will auto-open and auto-close the database if it is not already open.
|
|
85
|
-
*/
|
|
86
|
-
open(): void;
|
|
87
|
-
/** Close the underlying database. You should call this after [[open]]ing the database and completing your queries.
|
|
88
|
-
* @note For [[EditableSettingsDb]] instances, if the container's write lock is currently held, closing persists
|
|
89
|
-
* any pending changes and updates the manifest's `lastEditedBy` field with the current write lock holder.
|
|
90
|
-
*/
|
|
91
|
-
close(): void;
|
|
92
|
-
/** Return a copy of the value of the setting named `settingName`, or `undefined` if not found.
|
|
93
|
-
* The returned value is always cloned using [[Setting.clone]].
|
|
94
|
-
* @param settingName The name of the setting to retrieve.
|
|
95
|
-
*/
|
|
96
|
-
getSetting<T extends Setting>(settingName: SettingName): T | undefined;
|
|
97
|
-
/** Return a deep copy of all settings stored in this SettingsDb as a [[SettingsContainer]].
|
|
98
|
-
* @note The returned object is a fresh copy — mutating it will not affect the stored settings.
|
|
99
|
-
*/
|
|
100
|
-
getSettings(): SettingsContainer;
|
|
101
|
-
}
|
|
102
|
-
/** The default resource name used to store settings in a [[SettingsDb]].
|
|
103
|
-
* This is the key under which all settings are stored in the SQLite `strings` table.
|
|
104
|
-
* When loading settings at runtime via [[Workspace.loadSettingsDictionary]], the `resourceName` defaults
|
|
105
|
-
* to this value, ensuring the read and write paths always agree on which key to use.
|
|
25
|
+
export declare function isSettingsDb(db: WorkspaceDb): db is SettingsDb;
|
|
26
|
+
/** Query all string resource names from a [[SettingsDb]].
|
|
106
27
|
* @internal
|
|
107
28
|
*/
|
|
108
|
-
export declare
|
|
29
|
+
export declare function queryStringResourceNames(db: SettingsDb): WorkspaceDbName[];
|
|
109
30
|
//# sourceMappingURL=SettingsDb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsDb.d.ts","sourceRoot":"","sources":["../../../src/workspace/SettingsDb.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"SettingsDb.d.ts","sourceRoot":"","sources":["../../../src/workspace/SettingsDb.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,eAA+B,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,uBAAuB,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IAAE,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAA;CAAE,CAAC;AAE3E;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,WAAW,GAAG,EAAE,IAAI,UAAU,CAE9D;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,UAAU,GAAG,eAAe,EAAE,CAI1E"}
|
|
@@ -7,13 +7,29 @@
|
|
|
7
7
|
* @module Workspace
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*
|
|
15
|
-
*
|
|
10
|
+
exports.settingsWorkspaceDbName = void 0;
|
|
11
|
+
exports.isSettingsDb = isSettingsDb;
|
|
12
|
+
exports.queryStringResourceNames = queryStringResourceNames;
|
|
13
|
+
/**
|
|
14
|
+
* The fixed db name used by [[WorkspaceDb]]'s meant to hold settings.
|
|
15
|
+
* [[Workspace.loadSettingsDictionary]] will treat rows in the 'strings' table as setting dictionary entries when [[WorkspaceDbSettingsProps.dbName]] matches this value.
|
|
16
|
+
* @see [[Workspace.loadSettingsDictionary]]
|
|
16
17
|
* @internal
|
|
17
18
|
*/
|
|
18
|
-
exports.
|
|
19
|
+
exports.settingsWorkspaceDbName = "settings-db";
|
|
20
|
+
/** Return true if a [[WorkspaceDb]] is a [[SettingsDb]].
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
function isSettingsDb(db) {
|
|
24
|
+
return db.dbName === exports.settingsWorkspaceDbName;
|
|
25
|
+
}
|
|
26
|
+
/** Query all string resource names from a [[SettingsDb]].
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
function queryStringResourceNames(db) {
|
|
30
|
+
const resourceNames = [];
|
|
31
|
+
db.queryResources({ type: "string", callback: (names) => { for (const n of names)
|
|
32
|
+
resourceNames.push(n); } });
|
|
33
|
+
return resourceNames;
|
|
34
|
+
}
|
|
19
35
|
//# sourceMappingURL=SettingsDb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsDb.js","sourceRoot":"","sources":["../../../src/workspace/SettingsDb.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;
|
|
1
|
+
{"version":3,"file":"SettingsDb.js","sourceRoot":"","sources":["../../../src/workspace/SettingsDb.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAyBH,oCAEC;AAKD,4DAIC;AAhCD;;;;;GAKG;AACU,QAAA,uBAAuB,GAAoB,aAAa,CAAC;AAYtE;;GAEG;AACH,SAAgB,YAAY,CAAC,EAAe;IAC1C,OAAO,EAAE,CAAC,MAAM,KAAK,+BAAuB,CAAC;AAC/C,CAAC;AAED;;GAEG;AACH,SAAgB,wBAAwB,CAAC,EAAc;IACrD,MAAM,aAAa,GAAa,EAAE,CAAC;IACnC,EAAE,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,KAAK,MAAM,CAAC,IAAI,KAAK;YAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9G,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Workspace\n */\n\nimport type { WorkspaceDb, WorkspaceDbName } from \"./Workspace\";\n\n/**\n * The fixed db name used by [[WorkspaceDb]]'s meant to hold settings.\n * [[Workspace.loadSettingsDictionary]] will treat rows in the 'strings' table as setting dictionary entries when [[WorkspaceDbSettingsProps.dbName]] matches this value.\n * @see [[Workspace.loadSettingsDictionary]]\n * @internal\n */\nexport const settingsWorkspaceDbName: WorkspaceDbName = \"settings-db\";\n\n/** The db name type for the iTwin settings [[WorkspaceDb]].\n * @internal\n */\nexport type SettingsDbName = typeof settingsWorkspaceDbName;\n\n/** A [[WorkspaceDb]] whose name is the fixed iTwin settings db name.\n * @internal\n */\nexport type SettingsDb = WorkspaceDb & { readonly dbName: SettingsDbName };\n\n/** Return true if a [[WorkspaceDb]] is a [[SettingsDb]].\n * @internal\n */\nexport function isSettingsDb(db: WorkspaceDb): db is SettingsDb {\n return db.dbName === settingsWorkspaceDbName;\n}\n\n/** Query all string resource names from a [[SettingsDb]].\n * @internal\n */\nexport function queryStringResourceNames(db: SettingsDb): WorkspaceDbName[] {\n const resourceNames: string[] = [];\n db.queryResources({ type: \"string\", callback: (names) => { for (const n of names) resourceNames.push(n); } });\n return resourceNames;\n}\n"]}
|
|
@@ -1,250 +1,64 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Workspace
|
|
3
3
|
*/
|
|
4
|
-
import { LocalFileName } from "@itwin/core-common";
|
|
5
4
|
import { GuidString } from "@itwin/core-bentley";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
import { WorkspaceContainerId, WorkspaceDbSettingsProps } from "./Workspace";
|
|
6
|
+
import { EditableWorkspaceContainer, WorkspaceEditor } from "./WorkspaceEditor";
|
|
7
|
+
/** The default resource name used to store settings in a [[WorkspaceDb]].
|
|
8
|
+
* This is the key under which all settings are stored in the SQLite `strings` table.
|
|
9
|
+
* When loading settings at runtime via [[Workspace.loadSettingsDictionary]], the `resourceName` defaults
|
|
10
|
+
* to this value, ensuring the read and write paths always agree on which key to use.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const settingsResourceName = "settingsDictionary";
|
|
14
|
+
/** @internal */
|
|
13
15
|
export declare namespace SettingsEditor {
|
|
16
|
+
/** The type of workspace container used to store settings. */
|
|
17
|
+
const containerType = "settings";
|
|
14
18
|
/**
|
|
15
19
|
* Create a new [[SettingsEditor]] for creating new versions of [[SettingsDb]]s.
|
|
16
20
|
* @note The caller becomes the owner of the SettingsEditor and is responsible for calling [[SettingsEditor.close]] on it when finished.
|
|
17
21
|
* @note It is illegal to have more than one SettingsEditor active in a single session.
|
|
18
22
|
*/
|
|
19
|
-
function
|
|
23
|
+
function constructForITwin(iTwinId: GuidString): Promise<{
|
|
24
|
+
editor: WorkspaceEditor;
|
|
25
|
+
container: EditableWorkspaceContainer;
|
|
26
|
+
}>;
|
|
20
27
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @
|
|
23
|
-
*
|
|
28
|
+
* Obtain a [[SettingsEditor]] for the existing settings container associated with an iTwin.
|
|
29
|
+
* @returns The editor and container, or `undefined` if no settings container exists for the iTwin.
|
|
30
|
+
* @note The caller becomes the owner of the SettingsEditor and is responsible for calling [[SettingsEditor.close]] on it when finished.
|
|
31
|
+
* @note It is illegal to have more than one SettingsEditor active in a single session.
|
|
24
32
|
*/
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
function getForITwin(iTwinId: GuidString): Promise<{
|
|
34
|
+
editor: WorkspaceEditor;
|
|
35
|
+
container: EditableWorkspaceContainer;
|
|
36
|
+
} | undefined>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Help locate and obtain access to known containers with type "settings".
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
export declare namespace SettingsContainers {
|
|
43
|
+
/** Arguments for [[SettingsContainers.queryContainers]]. */
|
|
44
|
+
interface QueryArgs {
|
|
31
45
|
/** The iTwinId whose settings containers should be queried. */
|
|
32
46
|
iTwinId: GuidString;
|
|
33
|
-
/** Optional iModelId to further scope the query to containers associated with a specific iModel. */
|
|
34
|
-
iModelId?: GuidString;
|
|
35
47
|
/** Optional label filter. */
|
|
36
48
|
label?: string;
|
|
37
49
|
}
|
|
38
50
|
/**
|
|
39
|
-
* Query the [[BlobContainer]] service for
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* @param args - The query arguments including the iTwinId.
|
|
43
|
-
* @returns A promise that resolves to the matching container metadata entries.
|
|
44
|
-
* @note Requires [[IModelHost.authorizationClient]] to be configured.
|
|
45
|
-
*/
|
|
46
|
-
function queryContainers(args: QuerySettingsContainersArgs): Promise<BlobContainer.MetadataResponse[]>;
|
|
47
|
-
}
|
|
48
|
-
/** Arguments supplied to [[SettingsEditor.createNewCloudContainer]] to create a new [[EditableSettingsCloudContainer]].
|
|
49
|
-
* The created container will automatically have `containerType: "settings"` in its metadata, enabling discovery
|
|
50
|
-
* via `BlobContainer.service.queryContainersMetadata({ containerType: "settings" })`.
|
|
51
|
-
* @beta
|
|
52
|
-
*/
|
|
53
|
-
export interface CreateNewSettingsContainerArgs {
|
|
54
|
-
/**
|
|
55
|
-
* The scope of the container. This determines the ownership of the container, how RBAC rights are assigned,
|
|
56
|
-
* and the location of the datacenter.
|
|
57
|
-
*/
|
|
58
|
-
scope: BlobContainer.Scope;
|
|
59
|
-
/** The manifest to be stored in the default SettingsDb in the new container. */
|
|
60
|
-
manifest: SettingsDbManifest;
|
|
61
|
-
/** Metadata stored by the BlobContainer service. The `containerType` field is omitted here because it is
|
|
62
|
-
* automatically set to `"settings"` when the container is created (mirroring the `"workspace"` convention for WorkspaceDb containers).
|
|
63
|
-
*/
|
|
64
|
-
metadata: Omit<BlobContainer.Metadata, "containerType">;
|
|
65
|
-
/** The name of the default [[SettingsDb]] created inside the new container.
|
|
66
|
-
* Default: "settings-db";
|
|
67
|
-
*/
|
|
68
|
-
dbName?: WorkspaceDbName;
|
|
69
|
-
}
|
|
70
|
-
/** Arguments supplied to [[EditableSettingsCloudContainer.createNewSettingsDbVersion]].
|
|
71
|
-
* @beta
|
|
72
|
-
*/
|
|
73
|
-
export interface CreateNewSettingsDbVersionArgs {
|
|
74
|
-
/**
|
|
75
|
-
* The properties that determine the source [[SettingsDb]] to serve as the basis for the new version.
|
|
76
|
-
* This is usually the latest version, but it is possible to create patches to older versions.
|
|
77
|
-
*/
|
|
78
|
-
fromProps?: SettingsDbProps;
|
|
79
|
-
/** The type of version increment to apply to the source version. */
|
|
80
|
-
versionType: CloudSqlite.SemverIncrement;
|
|
81
|
-
/** For prerelease versions, a string that becomes part of the version name. */
|
|
82
|
-
identifier?: string;
|
|
83
|
-
}
|
|
84
|
-
/** The result of creating a new version of a [[SettingsDb]].
|
|
85
|
-
* @beta
|
|
86
|
-
*/
|
|
87
|
-
export interface SettingsDbVersionResult {
|
|
88
|
-
/** The name and version of the source SettingsDb. */
|
|
89
|
-
oldDb: WorkspaceDbNameAndVersion;
|
|
90
|
-
/** The name and version of the newly-created SettingsDb. */
|
|
91
|
-
newDb: WorkspaceDbNameAndVersion;
|
|
92
|
-
}
|
|
93
|
-
/** Arguments supplied to [[EditableSettingsCloudContainer.createDb]] to create a new [[SettingsDb]] in a container.
|
|
94
|
-
* @beta
|
|
95
|
-
*/
|
|
96
|
-
export interface CreateSettingsDbArgs {
|
|
97
|
-
/** The name of the new SettingsDb. Default: `"settings-db"`. */
|
|
98
|
-
dbName?: WorkspaceDbName;
|
|
99
|
-
/** The initial version of the new SettingsDb. Default: `"0.0.0"`. */
|
|
100
|
-
version?: WorkspaceDbVersion;
|
|
101
|
-
/** The manifest for the new SettingsDb. */
|
|
102
|
-
manifest: SettingsDbManifest;
|
|
103
|
-
}
|
|
104
|
-
/** Arguments supplied to [[EditableSettingsDb.updateSetting]] to add or update a single [[Setting]].
|
|
105
|
-
* @beta
|
|
106
|
-
*/
|
|
107
|
-
export interface UpdateSettingArgs {
|
|
108
|
-
/** The [[SettingName]] of the setting to add or update. */
|
|
109
|
-
readonly settingName: SettingName;
|
|
110
|
-
/** The new value for the setting. */
|
|
111
|
-
readonly value: Setting;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* A [[CloudSqliteContainer]] opened for editing settings by a [[SettingsEditor]].
|
|
115
|
-
* You can create new [[SettingsDb]]s or new versions of existing [[SettingsDb]]s inside it.
|
|
116
|
-
* Before actually making any changes to the container's contents, you must first obtain an exclusive write lock on it via
|
|
117
|
-
* [[acquireWriteLock]]. Only one user can hold the write lock at any given time. When you have finished making changes,
|
|
118
|
-
* you can use [[releaseWriteLock]] to publish your changes, or [[abandonChanges]] to discard them.
|
|
119
|
-
* @note Settings containers are separate from workspace containers, providing independent write locks.
|
|
120
|
-
* Editing settings does not block workspace resource editing, and vice versa.
|
|
121
|
-
* @beta
|
|
122
|
-
*/
|
|
123
|
-
export interface EditableSettingsCloudContainer extends CloudSqliteContainer {
|
|
124
|
-
/**
|
|
125
|
-
* Create a copy of an existing [[SettingsDb]] in this container with a new [[WorkspaceDbVersion]].
|
|
126
|
-
* The copy should be modified with new content before the write lock is released,
|
|
127
|
-
* and thereafter may never be modified again.
|
|
128
|
-
* @param args - The properties that determine the source SettingsDb and the version increment to apply.
|
|
129
|
-
* @returns A promise that resolves to an object containing the old and new SettingsDb names and versions.
|
|
130
|
-
*/
|
|
131
|
-
createNewSettingsDbVersion(args: CreateNewSettingsDbVersionArgs): Promise<SettingsDbVersionResult>;
|
|
132
|
-
/**
|
|
133
|
-
* Create a new, empty [[SettingsDb]].
|
|
134
|
-
* @param args - The arguments for creating the new SettingsDb.
|
|
135
|
-
* @returns A promise that resolves to an EditableSettingsDb.
|
|
136
|
-
*/
|
|
137
|
-
createDb(args: CreateSettingsDbArgs): Promise<EditableSettingsDb>;
|
|
138
|
-
/**
|
|
139
|
-
* Get the cloud properties of this container.
|
|
51
|
+
* Query the [[BlobContainer]] service for the single settings container associated with a given iTwin.
|
|
52
|
+
* @returns The containerId, or `undefined` if no container exists.
|
|
53
|
+
* @throws if more than one settings container is found.
|
|
140
54
|
*/
|
|
141
|
-
|
|
55
|
+
function getITwinContainerId(iTwinId: GuidString): Promise<WorkspaceContainerId | undefined>;
|
|
142
56
|
/**
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* @param props - The properties of the SettingsDb.
|
|
146
|
-
* @returns An EditableSettingsDb for modifying settings.
|
|
147
|
-
* @throws if the targeted SettingsDb has already been published and is immutable. Use [[createNewSettingsDbVersion]] first to create an editable version.
|
|
148
|
-
*/
|
|
149
|
-
getEditableDb(props?: SettingsDbProps): EditableSettingsDb;
|
|
150
|
-
/**
|
|
151
|
-
* Acquire the write lock on the container. Use [[releaseWriteLock]] to release the lock after publishing your changes, or
|
|
152
|
-
* [[abandonChanges]] to release the lock and discard your changes.
|
|
153
|
-
* Only one user can hold the write lock at any given time. However, readers can continue to read the published contents of the container while
|
|
154
|
-
* a writer holds the write lock. Readers will only see the writer's changes after they are published by [[releaseWriteLock]].
|
|
155
|
-
* @param user - The name of the user acquiring the write lock.
|
|
156
|
-
* @throws if the write lock is already held by another user.
|
|
157
|
-
*/
|
|
158
|
-
acquireWriteLock(user: string): void;
|
|
159
|
-
/**
|
|
160
|
-
* Release the write lock on the container. This should be called after all changes to the container's contents are complete. It
|
|
161
|
-
* publishes and uploads the changes made to any [[SettingsDb]]s while the lock was held, after which those dbs become immutable.
|
|
162
|
-
*/
|
|
163
|
-
releaseWriteLock(): void;
|
|
164
|
-
/**
|
|
165
|
-
* Abandon any changes made to the container and release the write lock. Any newly created versions of SettingsDbs are discarded.
|
|
166
|
-
*/
|
|
167
|
-
abandonChanges(): void;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* An editable [[SettingsDb]]. This is used only by tools to allow administrators to create and modify SettingsDbs.
|
|
171
|
-
* For cloud-based SettingsDbs, the container's write token must be obtained via [[EditableSettingsCloudContainer.acquireWriteLock]] before the methods in this interface may be used.
|
|
172
|
-
* Normally, only admins will have write access.
|
|
173
|
-
* Only one admin at a time may be editing a settings container.
|
|
174
|
-
* @note Unlike [[EditableWorkspaceDb]], this interface only supports settings operations — no blob, file, or string resource methods.
|
|
175
|
-
* @beta
|
|
176
|
-
*/
|
|
177
|
-
export interface EditableSettingsDb extends SettingsDb {
|
|
178
|
-
/** The editable container that owns this SettingsDb. */
|
|
179
|
-
readonly container: EditableSettingsCloudContainer;
|
|
180
|
-
/**
|
|
181
|
-
* Update the contents of the manifest in this SettingsDb.
|
|
182
|
-
* @note This replaces the stored manifest entirely; omitted fields are lost.
|
|
183
|
-
* @param manifest - The updated manifest.
|
|
184
|
-
*/
|
|
185
|
-
updateManifest(manifest: SettingsDbManifest): void;
|
|
186
|
-
/**
|
|
187
|
-
* Replace all settings in this SettingsDb with the given container.
|
|
188
|
-
* @param settings - The settings object to store.
|
|
189
|
-
*/
|
|
190
|
-
updateSettings(settings: SettingsContainer): void;
|
|
191
|
-
/**
|
|
192
|
-
* Add or update a single [[Setting]] by name.
|
|
193
|
-
* If a setting with the given name already exists, its value is replaced.
|
|
194
|
-
* If it does not exist, it is added. Other settings are preserved.
|
|
195
|
-
* @param args - The arguments specifying the setting name and value.
|
|
196
|
-
*/
|
|
197
|
-
updateSetting(args: UpdateSettingArgs): void;
|
|
198
|
-
/**
|
|
199
|
-
* Remove a single [[Setting]] by name. Other settings are preserved.
|
|
200
|
-
* @param settingName - The name of the setting to remove.
|
|
201
|
-
*/
|
|
202
|
-
removeSetting(settingName: SettingName): void;
|
|
203
|
-
}
|
|
204
|
-
/** An object that permits administrators to modify the contents of settings containers.
|
|
205
|
-
* Use [[SettingsEditor.construct]] to obtain a SettingsEditor, and [[close]] when finished using it.
|
|
206
|
-
* Only one SettingsEditor may be in use at any given time.
|
|
207
|
-
* Use [[getContainer]] to edit an existing container, or [[createNewCloudContainer]] to create a new container.
|
|
208
|
-
* @beta
|
|
209
|
-
*/
|
|
210
|
-
export interface SettingsEditor {
|
|
211
|
-
/** @internal */
|
|
212
|
-
[_implementationProhibited]: unknown;
|
|
213
|
-
/**
|
|
214
|
-
* The workspace dedicated to this editor.
|
|
215
|
-
* @note This workspace is independent from [[IModelHost.appWorkspace]] and all [[IModelDb.workspace]]s.
|
|
216
|
-
*/
|
|
217
|
-
readonly workspace: Workspace;
|
|
218
|
-
/**
|
|
219
|
-
* Retrieves a container for the editor with the specified properties and access token.
|
|
220
|
-
*/
|
|
221
|
-
getContainer(args: GetWorkspaceContainerArgs): EditableSettingsCloudContainer;
|
|
222
|
-
/**
|
|
223
|
-
* Asynchronously retrieves a container for the editor with the specified properties.
|
|
224
|
-
*/
|
|
225
|
-
getContainerAsync(props: WorkspaceContainerProps): Promise<EditableSettingsCloudContainer>;
|
|
226
|
-
/**
|
|
227
|
-
* Creates a new cloud container for holding SettingsDbs, from the [[BlobContainer]] service.
|
|
228
|
-
* The container is automatically assigned `containerType: "settings"` in its metadata and
|
|
229
|
-
* initialized with a default [[SettingsDb]].
|
|
230
|
-
* @param args - The arguments for creating the container, including scope, metadata, and manifest.
|
|
231
|
-
* @returns A promise that resolves to the new EditableSettingsCloudContainer.
|
|
232
|
-
* @note The current user must have administrator rights for the iTwin for the container.
|
|
57
|
+
* Look up the settings container for an iTwin and obtain a read-only access token.
|
|
58
|
+
* @returns container props needed by [[IModelHost.getITwinWorkspace]].
|
|
233
59
|
* @note Requires [[IModelHost.authorizationClient]] to be configured.
|
|
60
|
+
* @note Requires [[BlobContainer.service]] to be configured.
|
|
234
61
|
*/
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Find and open existing settings containers by querying the [[BlobContainer]] service.
|
|
238
|
-
* This is a convenience method that queries for all settings containers matching the given iTwinId
|
|
239
|
-
* (and optionally iModelId), requests write access tokens, and opens each matching container.
|
|
240
|
-
* @param args - The query arguments including iTwinId and optionally iModelId and label.
|
|
241
|
-
* @returns A promise that resolves to an array of opened [[EditableSettingsCloudContainer]]s.
|
|
242
|
-
* @note Requires [[IModelHost.authorizationClient]] and [[BlobContainer.service]] to be configured.
|
|
243
|
-
*/
|
|
244
|
-
findContainers(args: SettingsEditor.QuerySettingsContainersArgs): Promise<EditableSettingsCloudContainer[]>;
|
|
245
|
-
/**
|
|
246
|
-
* Closes this editor. All settings containers are dropped.
|
|
247
|
-
*/
|
|
248
|
-
close(): void;
|
|
62
|
+
function getITwinSettingsSources(iTwinId: GuidString): Promise<WorkspaceDbSettingsProps[] | undefined>;
|
|
249
63
|
}
|
|
250
64
|
//# sourceMappingURL=SettingsEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsEditor.d.ts","sourceRoot":"","sources":["../../../src/workspace/SettingsEditor.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"SettingsEditor.d.ts","sourceRoot":"","sources":["../../../src/workspace/SettingsEditor.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAI7E,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIhF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,uBAAuB,CAAC;AAEzD,gBAAgB;AAChB,yBAAiB,cAAc,CAAC;IAC9B,8DAA8D;IACvD,MAAM,aAAa,aAAa,CAAC;IAExC;;;;OAIG;IACH,SAAsB,iBAAiB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,eAAe,CAAC;QAAC,SAAS,EAAE,0BAA0B,CAAA;KAAE,CAAC,CAExI;IAED;;;;;OAKG;IACH,SAAsB,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,eAAe,CAAC;QAAC,SAAS,EAAE,0BAA0B,CAAA;KAAE,GAAG,SAAS,CAAC,CAE9I;CACF;AAED;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,4DAA4D;IAC5D,UAAiB,SAAS;QACxB,+DAA+D;QAC/D,OAAO,EAAE,UAAU,CAAC;QACpB,6BAA6B;QAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;IAeD;;;;OAIG;IACH,SAAsB,mBAAmB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CASxG;IAED;;;;;OAKG;IACH,SAAsB,uBAAuB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,wBAAwB,EAAE,GAAG,SAAS,CAAC,CAwBlH;CACF"}
|