@itwin/core-backend 4.8.0-dev.9 → 4.9.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -1
- package/lib/cjs/BackendHubAccess.d.ts +18 -16
- package/lib/cjs/BackendHubAccess.d.ts.map +1 -1
- package/lib/cjs/BackendHubAccess.js +16 -15
- 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.d.ts.map +1 -1
- package/lib/cjs/BriefcaseManager.js +19 -11
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/Category.d.ts +0 -6
- package/lib/cjs/Category.d.ts.map +1 -1
- package/lib/cjs/Category.js +0 -6
- package/lib/cjs/Category.js.map +1 -1
- package/lib/cjs/ChangeSummaryManager.d.ts.map +1 -1
- package/lib/cjs/ChangeSummaryManager.js +13 -11
- package/lib/cjs/ChangeSummaryManager.js.map +1 -1
- package/lib/cjs/ChangedElementsDb.d.ts.map +1 -1
- package/lib/cjs/ChangedElementsDb.js +5 -3
- package/lib/cjs/ChangedElementsDb.js.map +1 -1
- package/lib/cjs/ChangedElementsManager.js.map +1 -1
- package/lib/cjs/ChangesetECAdaptor.d.ts.map +1 -1
- package/lib/cjs/ChangesetECAdaptor.js +242 -237
- package/lib/cjs/ChangesetECAdaptor.js.map +1 -1
- package/lib/cjs/ChannelControl.d.ts +4 -26
- package/lib/cjs/ChannelControl.d.ts.map +1 -1
- package/lib/cjs/ChannelControl.js +2 -101
- package/lib/cjs/ChannelControl.js.map +1 -1
- package/lib/cjs/CheckpointManager.d.ts.map +1 -1
- package/lib/cjs/CheckpointManager.js +5 -3
- package/lib/cjs/CheckpointManager.js.map +1 -1
- package/lib/cjs/ClassRegistry.d.ts.map +1 -1
- package/lib/cjs/ClassRegistry.js +8 -7
- 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 +2 -2
- package/lib/cjs/CloudSqlite.js.map +1 -1
- package/lib/cjs/CodeService.js.map +1 -1
- package/lib/cjs/CodeSpecs.js.map +1 -1
- package/lib/cjs/ConcurrentQuery.js.map +1 -1
- package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
- package/lib/cjs/DevTools.d.ts.map +1 -1
- package/lib/cjs/DevTools.js +2 -1
- package/lib/cjs/DevTools.js.map +1 -1
- package/lib/cjs/DisplayStyle.d.ts +0 -3
- package/lib/cjs/DisplayStyle.d.ts.map +1 -1
- package/lib/cjs/DisplayStyle.js +0 -3
- package/lib/cjs/DisplayStyle.js.map +1 -1
- package/lib/cjs/ECDb.d.ts +6 -1
- package/lib/cjs/ECDb.d.ts.map +1 -1
- package/lib/cjs/ECDb.js +19 -14
- package/lib/cjs/ECDb.js.map +1 -1
- package/lib/cjs/ECSchemaXmlContext.js +2 -2
- package/lib/cjs/ECSchemaXmlContext.js.map +1 -1
- package/lib/cjs/ECSqlStatement.d.ts +6 -3
- package/lib/cjs/ECSqlStatement.d.ts.map +1 -1
- package/lib/cjs/ECSqlStatement.js +3 -3
- package/lib/cjs/ECSqlStatement.js.map +1 -1
- package/lib/cjs/Element.d.ts +2 -59
- package/lib/cjs/Element.d.ts.map +1 -1
- package/lib/cjs/Element.js +7 -63
- 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 +4 -8
- package/lib/cjs/ElementAspect.js.map +1 -1
- package/lib/cjs/ElementGraphics.d.ts.map +1 -1
- package/lib/cjs/ElementGraphics.js +2 -1
- package/lib/cjs/ElementGraphics.js.map +1 -1
- package/lib/cjs/ElementTreeWalker.d.ts +19 -0
- package/lib/cjs/ElementTreeWalker.d.ts.map +1 -1
- package/lib/cjs/ElementTreeWalker.js +23 -9
- 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.js.map +1 -1
- package/lib/cjs/GeoCoordConfig.d.ts.map +1 -1
- package/lib/cjs/GeoCoordConfig.js +2 -1
- package/lib/cjs/GeoCoordConfig.js.map +1 -1
- package/lib/cjs/GeographicCRSServices.js +2 -2
- package/lib/cjs/GeographicCRSServices.js.map +1 -1
- package/lib/cjs/GeometrySummary.d.ts.map +1 -1
- package/lib/cjs/GeometrySummary.js +49 -48
- package/lib/cjs/GeometrySummary.js.map +1 -1
- package/lib/cjs/HubMock.js.map +1 -1
- package/lib/cjs/IModelCloneContext.js.map +1 -1
- package/lib/cjs/IModelDb.d.ts +24 -94
- package/lib/cjs/IModelDb.d.ts.map +1 -1
- package/lib/cjs/IModelDb.js +196 -151
- package/lib/cjs/IModelDb.js.map +1 -1
- package/lib/cjs/IModelElementCloneContext.d.ts.map +1 -1
- package/lib/cjs/IModelElementCloneContext.js +5 -4
- package/lib/cjs/IModelElementCloneContext.js.map +1 -1
- package/lib/cjs/IModelHost.d.ts +5 -3
- package/lib/cjs/IModelHost.d.ts.map +1 -1
- package/lib/cjs/IModelHost.js +16 -18
- package/lib/cjs/IModelHost.js.map +1 -1
- package/lib/cjs/IModelJsFs.js.map +1 -1
- package/lib/cjs/IpcHost.d.ts.map +1 -1
- package/lib/cjs/IpcHost.js +15 -13
- package/lib/cjs/IpcHost.js.map +1 -1
- package/lib/cjs/LineStyle.js.map +1 -1
- package/lib/cjs/LocalHub.d.ts +2 -2
- package/lib/cjs/LocalHub.d.ts.map +1 -1
- package/lib/cjs/LocalHub.js +18 -18
- package/lib/cjs/LocalHub.js.map +1 -1
- package/lib/cjs/LocalhostIpcHost.js.map +1 -1
- package/lib/cjs/LockControl.d.ts +73 -0
- package/lib/cjs/LockControl.d.ts.map +1 -0
- package/lib/cjs/LockControl.js +11 -0
- package/lib/cjs/LockControl.js.map +1 -0
- package/lib/cjs/Material.d.ts +2 -5
- package/lib/cjs/Material.d.ts.map +1 -1
- package/lib/cjs/Material.js +1 -4
- package/lib/cjs/Material.js.map +1 -1
- package/lib/cjs/Model.d.ts +0 -22
- package/lib/cjs/Model.d.ts.map +1 -1
- package/lib/cjs/Model.js +5 -26
- 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 +0 -12
- package/lib/cjs/Relationship.d.ts.map +1 -1
- package/lib/cjs/Relationship.js +5 -16
- package/lib/cjs/Relationship.js.map +1 -1
- package/lib/cjs/RpcBackend.js.map +1 -1
- package/lib/cjs/SQLiteDb.d.ts +6 -1
- package/lib/cjs/SQLiteDb.d.ts.map +1 -1
- package/lib/cjs/SQLiteDb.js +23 -16
- package/lib/cjs/SQLiteDb.js.map +1 -1
- package/lib/cjs/Schema.js.map +1 -1
- package/lib/cjs/SchemaSync.d.ts +3 -0
- package/lib/cjs/SchemaSync.d.ts.map +1 -1
- package/lib/cjs/SchemaSync.js +24 -11
- package/lib/cjs/SchemaSync.js.map +1 -1
- package/lib/cjs/SchemaUtils.js +3 -3
- package/lib/cjs/SchemaUtils.js.map +1 -1
- package/lib/cjs/SqliteChangesetReader.d.ts.map +1 -1
- package/lib/cjs/SqliteChangesetReader.js +2 -2
- package/lib/cjs/SqliteChangesetReader.js.map +1 -1
- package/lib/cjs/SqliteStatement.js +2 -2
- package/lib/cjs/SqliteStatement.js.map +1 -1
- package/lib/cjs/TextAnnotationElement.js.map +1 -1
- package/lib/cjs/TextAnnotationGeometry.js.map +1 -1
- package/lib/cjs/TextAnnotationLayout.js.map +1 -1
- package/lib/cjs/Texture.js.map +1 -1
- package/lib/cjs/TileStorage.js.map +1 -1
- package/lib/cjs/TxnManager.d.ts +2 -1
- package/lib/cjs/TxnManager.d.ts.map +1 -1
- package/lib/cjs/TxnManager.js +4 -2
- package/lib/cjs/TxnManager.js.map +1 -1
- package/lib/cjs/ViewDefinition.d.ts +1 -18
- package/lib/cjs/ViewDefinition.d.ts.map +1 -1
- package/lib/cjs/ViewDefinition.js +1 -18
- package/lib/cjs/ViewDefinition.js.map +1 -1
- package/lib/cjs/ViewStateHydrator.js.map +1 -1
- package/lib/cjs/ViewStore.d.ts.map +1 -1
- package/lib/cjs/ViewStore.js +6 -5
- 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 +2 -1
- package/lib/cjs/core-backend.d.ts.map +1 -1
- package/lib/cjs/core-backend.js +3 -5
- package/lib/cjs/core-backend.js.map +1 -1
- package/lib/cjs/domains/FunctionalElements.d.ts +0 -10
- package/lib/cjs/domains/FunctionalElements.d.ts.map +1 -1
- package/lib/cjs/domains/FunctionalElements.js +0 -10
- package/lib/cjs/domains/FunctionalElements.js.map +1 -1
- package/lib/cjs/domains/FunctionalSchema.d.ts.map +1 -1
- package/lib/cjs/domains/FunctionalSchema.js +2 -1
- package/lib/cjs/domains/FunctionalSchema.js.map +1 -1
- package/lib/cjs/domains/GenericElements.d.ts +0 -18
- package/lib/cjs/domains/GenericElements.d.ts.map +1 -1
- package/lib/cjs/domains/GenericElements.js +0 -18
- 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 +24 -0
- package/lib/cjs/internal/ChangesetConflictArgs.d.ts.map +1 -0
- package/lib/cjs/internal/ChangesetConflictArgs.js +7 -0
- package/lib/cjs/internal/ChangesetConflictArgs.js.map +1 -0
- package/lib/cjs/internal/ChannelAdmin.d.ts +34 -0
- package/lib/cjs/internal/ChannelAdmin.d.ts.map +1 -0
- package/lib/cjs/internal/ChannelAdmin.js +117 -0
- package/lib/cjs/internal/ChannelAdmin.js.map +1 -0
- package/lib/cjs/internal/NativePlatform.d.ts +15 -0
- package/lib/cjs/internal/NativePlatform.d.ts.map +1 -0
- package/lib/cjs/internal/NativePlatform.js +49 -0
- package/lib/cjs/internal/NativePlatform.js.map +1 -0
- package/lib/cjs/internal/NoLocks.d.ts +6 -0
- package/lib/cjs/internal/NoLocks.d.ts.map +1 -0
- package/lib/cjs/internal/NoLocks.js +31 -0
- package/lib/cjs/internal/NoLocks.js.map +1 -0
- package/lib/cjs/{ServerBasedLocks.d.ts → internal/ServerBasedLocks.d.ts} +10 -16
- package/lib/cjs/internal/ServerBasedLocks.d.ts.map +1 -0
- package/lib/cjs/{ServerBasedLocks.js → internal/ServerBasedLocks.js} +29 -18
- package/lib/cjs/internal/ServerBasedLocks.js.map +1 -0
- package/lib/cjs/internal/Symbols.d.ts +11 -0
- package/lib/cjs/internal/Symbols.d.ts.map +1 -0
- package/lib/cjs/internal/Symbols.js +21 -0
- package/lib/cjs/internal/Symbols.js.map +1 -0
- package/lib/cjs/internal/cross-package.d.ts +4 -0
- package/lib/cjs/internal/cross-package.d.ts.map +1 -0
- package/lib/cjs/internal/cross-package.js +16 -0
- package/lib/cjs/internal/cross-package.js.map +1 -0
- package/lib/cjs/internal/workspace/SettingsImpl.d.ts +2 -2
- package/lib/cjs/internal/workspace/SettingsImpl.d.ts.map +1 -1
- package/lib/cjs/internal/workspace/SettingsImpl.js +3 -3
- package/lib/cjs/internal/workspace/SettingsImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/SettingsSchemasImpl.js +2 -2
- package/lib/cjs/internal/workspace/SettingsSchemasImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceImpl.d.ts.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceImpl.js +31 -27
- package/lib/cjs/internal/workspace/WorkspaceImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceSqliteDb.d.ts.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceSqliteDb.js +2 -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.d.ts.map +1 -1
- package/lib/cjs/rpc/tracing.js +5 -2
- package/lib/cjs/rpc/tracing.js.map +1 -1
- package/lib/cjs/rpc/web/logging.js.map +1 -1
- package/lib/cjs/rpc/web/request.js.map +1 -1
- package/lib/cjs/rpc/web/response.js.map +1 -1
- package/lib/cjs/rpc-impl/DevToolsRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts +1 -0
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js +9 -4
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.d.ts.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.js.map +1 -1
- package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/WipRpcImpl.js.map +1 -1
- package/lib/cjs/workspace/Settings.d.ts +3 -3
- package/lib/cjs/workspace/Settings.d.ts.map +1 -1
- package/lib/cjs/workspace/Settings.js +1 -1
- package/lib/cjs/workspace/Settings.js.map +1 -1
- package/lib/cjs/workspace/SettingsSchemas.d.ts +2 -2
- package/lib/cjs/workspace/SettingsSchemas.d.ts.map +1 -1
- package/lib/cjs/workspace/SettingsSchemas.js +1 -1
- package/lib/cjs/workspace/SettingsSchemas.js.map +1 -1
- package/lib/cjs/workspace/Workspace.d.ts +4 -4
- package/lib/cjs/workspace/Workspace.d.ts.map +1 -1
- package/lib/cjs/workspace/Workspace.js +1 -1
- package/lib/cjs/workspace/Workspace.js.map +1 -1
- package/lib/cjs/workspace/WorkspaceEditor.d.ts +2 -2
- 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/package.json +13 -13
- package/lib/cjs/ServerBasedLocks.d.ts.map +0 -1
- package/lib/cjs/ServerBasedLocks.js.map +0 -1
- package/lib/cjs/internal/ImplementationProhibited.d.ts +0 -44
- package/lib/cjs/internal/ImplementationProhibited.d.ts.map +0 -1
- package/lib/cjs/internal/ImplementationProhibited.js +0 -51
- package/lib/cjs/internal/ImplementationProhibited.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxnManager.js","sourceRoot":"","sources":["../../src/TxnManager.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,sDAE6B;AAE7B,mEAAgE;AAEhE,uCAAoC;AA4DpC,oCAAoC;AACpC,SAAgB,sBAAsB,CAAC,GAAW;IAChD,MAAM,OAAO,GAAG,mBAAmB,CAAC,WAAW,CAAC;IAChD,mBAAmB,CAAC,WAAW,GAAG,GAAG,CAAC;IACtC,OAAO,OAAO,CAAC;AACjB,CAAC;AAJD,wDAIC;AAED,iIAAiI;AACjI,MAAM,oBAAoB;IAKxB,YAAmB,QAA8B;QAJjC,cAAS,GAAG,IAAI,+BAAgB,EAAE,CAAC;QAClC,kBAAa,GAAa,EAAE,CAAC;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esContent":["/*---------------------------------------------------------------------------------------------\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 iModels\n */\n\nimport * as touch from \"touch\";\nimport {\n assert, BeEvent, BentleyError, compareStrings, CompressedId64Set, DbResult, Id64Array, Id64String, IModelStatus, IndexMap, Logger, OrderedId64Array,\n} from \"@itwin/core-bentley\";\nimport { EntityIdAndClassIdIterable, ModelGeometryChangesProps, ModelIdAndGeometryGuid, NotifyEntitiesChangedArgs, NotifyEntitiesChangedMetadata } from \"@itwin/core-common\";\nimport { BackendLoggerCategory } from \"./BackendLoggerCategory\";\nimport { BriefcaseDb, StandaloneDb } from \"./IModelDb\";\nimport { IpcHost } from \"./IpcHost\";\nimport { Relationship, RelationshipProps } from \"./Relationship\";\nimport { SqliteStatement } from \"./SqliteStatement\";\n\n/** A string that identifies a Txn.\n * @public\n */\nexport type TxnIdString = string;\n\n/** An error generated during dependency validation.\n * @see [[TxnManager.validationErrors]].\n * @public\n */\nexport interface ValidationError {\n /** If true, txn is aborted. */\n fatal: boolean;\n /** The type of error. */\n errorType: string;\n /** Optional description of what went wrong. */\n message?: string;\n}\n\n/** Describes a set of [[Element]]s or [[Model]]s that changed as part of a transaction.\n * @see [[TxnManager.onElementsChanged]] and [[TxnManager.onModelsChanged]].\n * @public\n */\nexport interface TxnChangedEntities {\n /** The entities that were inserted by the transaction. */\n readonly inserts: EntityIdAndClassIdIterable;\n /** The entities that were deleted by the transaction. */\n readonly deletes: EntityIdAndClassIdIterable;\n /** The entities that were modified by the transaction, including any [[Element]]s for which one of their [[ElementAspect]]s was changed. */\n readonly updates: EntityIdAndClassIdIterable;\n}\n\n/** Arguments supplied to [[TxnManager.queryLocalChanges]].\n * @beta\n */\nexport interface QueryLocalChangesArgs {\n /** If supplied and non-empty, restricts the results to include only EC instances belonging to the specified classes or subclasses thereof. */\n readonly includedClasses?: string[];\n /** If `true`, include changes that have not yet been saved. */\n readonly includeUnsavedChanges?: boolean;\n}\n\n/** Represents a change (insertion, deletion, or modification) to a single EC instance made in a local [[BriefcaseDb]].\n * @see [[TxnManager.queryLocalChanges]] to iterate all of the changed instances.\n* @beta\n*/\nexport interface ChangeInstanceKey {\n /** ECInstanceId of the instance. */\n id: Id64String;\n /** Fully-qualified class name of the instance. */\n classFullName: string;\n /** The type of change. */\n changeType: \"inserted\" | \"updated\" | \"deleted\";\n}\n\ntype EntitiesChangedEvent = BeEvent<(changes: TxnChangedEntities) => void>;\n\n/** Strictly for tests. @internal */\nexport function setMaxEntitiesPerEvent(max: number): number {\n const prevMax = ChangedEntitiesProc.maxPerEvent;\n ChangedEntitiesProc.maxPerEvent = max;\n return prevMax;\n}\n\n/** Maintains an ordered array of entity Ids and a parallel array containing the index of the corresponding entity's class Id. */\nclass ChangedEntitiesArray {\n public readonly entityIds = new OrderedId64Array();\n private readonly _classIndices: number[] = [];\n private readonly _classIds: IndexMap<Id64String>;\n\n public constructor(classIds: IndexMap<Id64String>) {\n this._classIds = classIds;\n }\n\n public insert(entityId: Id64String, classId: Id64String): void {\n const entityIndex = this.entityIds.insert(entityId);\n const classIndex = this._classIds.insert(classId);\n assert(classIndex >= 0);\n if (this.entityIds.length !== this._classIndices.length) {\n // New entity - insert corresponding class index entry.\n this._classIndices.splice(entityIndex, 0, classIndex);\n } else {\n // Existing entity - update corresponding class index.\n // (We do this because apparently connectors can (very rarely) change the class Id of an existing element).\n this._classIndices[entityIndex] = classIndex;\n }\n\n assert(this.entityIds.length === this._classIndices.length);\n }\n\n public clear(): void {\n this.entityIds.clear();\n this._classIndices.length = 0;\n }\n\n public addToChangedEntities(entities: NotifyEntitiesChangedArgs, type: \"deleted\" | \"inserted\" | \"updated\"): void {\n if (this.entityIds.length > 0)\n entities[type] = CompressedId64Set.compressIds(this.entityIds);\n\n entities[`${type}Meta`] = this._classIndices;\n }\n\n public iterable(classIds: Id64Array): EntityIdAndClassIdIterable {\n function* iterator(entityIds: ReadonlyArray<Id64String>, classIndices: number[]) {\n const entity = { id: \"\", classId: \"\" };\n for (let i = 0; i < entityIds.length; i++) {\n entity.id = entityIds[i];\n entity.classId = classIds[classIndices[i]];\n yield entity;\n }\n }\n\n return {\n [Symbol.iterator]: () => iterator(this.entityIds.array, this._classIndices),\n };\n }\n}\n\nclass ChangedEntitiesProc {\n private readonly _classIds = new IndexMap<Id64String>((lhs, rhs) => compareStrings(lhs, rhs));\n private readonly _inserted = new ChangedEntitiesArray(this._classIds);\n private readonly _deleted = new ChangedEntitiesArray(this._classIds);\n private readonly _updated = new ChangedEntitiesArray(this._classIds);\n private _currSize = 0;\n\n public static maxPerEvent = 1000;\n\n public static process(iModel: BriefcaseDb | StandaloneDb, mgr: TxnManager): void {\n if (mgr.isDisposed) {\n // The iModel is being closed. Do not prepare new sqlite statements.\n return;\n }\n\n this.processChanges(iModel, mgr.onElementsChanged, \"notifyElementsChanged\");\n this.processChanges(iModel, mgr.onModelsChanged, \"notifyModelsChanged\");\n }\n\n private populateMetadata(db: BriefcaseDb | StandaloneDb, classIds: Id64Array): NotifyEntitiesChangedMetadata[] {\n // Ensure metadata for all class Ids is loaded. Loading metadata for a derived class loads metadata for all of its superclasses.\n const classIdsToLoad = classIds.filter((x) => undefined === db.classMetaDataRegistry.findByClassId(x));\n if (classIdsToLoad.length > 0) {\n const classIdsStr = classIdsToLoad.join(\",\");\n const sql = `SELECT ec_class.Name, ec_class.Id, ec_schema.Name FROM ec_class JOIN ec_schema WHERE ec_schema.Id = ec_class.SchemaId AND ec_class.Id IN (${classIdsStr})`;\n db.withPreparedSqliteStatement(sql, (stmt) => {\n while (stmt.step() === DbResult.BE_SQLITE_ROW) {\n const classFullName = `${stmt.getValueString(2)}:${stmt.getValueString(0)}`;\n db.tryGetMetaData(classFullName);\n }\n });\n }\n\n // Define array indices for the metadata array entries correlating to the class Ids in the input list.\n const nameToIndex = new Map<string, number>();\n for (const classId of classIds) {\n const meta = db.classMetaDataRegistry.findByClassId(classId);\n nameToIndex.set(meta?.ecclass ?? \"\", nameToIndex.size);\n }\n\n const result: NotifyEntitiesChangedMetadata[] = [];\n\n function addMetadata(name: string, index: number): void {\n const bases: number[] = [];\n result[index] = { name, bases };\n\n const meta = db.tryGetMetaData(name);\n if (!meta) {\n return;\n }\n\n for (const baseClassName of meta.baseClasses) {\n let baseClassIndex = nameToIndex.get(baseClassName);\n if (undefined === baseClassIndex) {\n baseClassIndex = nameToIndex.size;\n nameToIndex.set(baseClassName, baseClassIndex);\n addMetadata(baseClassName, baseClassIndex);\n }\n\n bases.push(baseClassIndex);\n }\n }\n\n for (const [name, index] of nameToIndex) {\n if (index >= classIds.length) {\n // Entries beyond this are base classes for the classes in `classIds` - don't reprocess them.\n break;\n }\n\n addMetadata(name, index);\n }\n\n return result;\n }\n\n private sendEvent(iModel: BriefcaseDb | StandaloneDb, evt: EntitiesChangedEvent, evtName: \"notifyElementsChanged\" | \"notifyModelsChanged\") {\n if (this._currSize === 0)\n return;\n\n const classIds = this._classIds.toArray();\n\n // Notify backend listeners.\n const txnEntities: TxnChangedEntities = {\n inserts: this._inserted.iterable(classIds),\n deletes: this._deleted.iterable(classIds),\n updates: this._updated.iterable(classIds),\n };\n evt.raiseEvent(txnEntities);\n\n // Notify frontend listeners.\n const entities: NotifyEntitiesChangedArgs = {\n insertedMeta: [],\n updatedMeta: [],\n deletedMeta: [],\n meta: this.populateMetadata(iModel, classIds),\n };\n\n this._inserted.addToChangedEntities(entities, \"inserted\");\n this._deleted.addToChangedEntities(entities, \"deleted\");\n this._updated.addToChangedEntities(entities, \"updated\");\n\n IpcHost.notifyTxns(iModel, evtName, entities);\n\n // Reset state.\n this._inserted.clear();\n this._deleted.clear();\n this._updated.clear();\n this._classIds.clear();\n this._currSize = 0;\n }\n\n private static processChanges(iModel: BriefcaseDb | StandaloneDb, changedEvent: EntitiesChangedEvent, evtName: \"notifyElementsChanged\" | \"notifyModelsChanged\") {\n try {\n const maxSize = this.maxPerEvent;\n const changes = new ChangedEntitiesProc();\n const select = \"notifyElementsChanged\" === evtName\n ? \"SELECT ElementId, ChangeType, ECClassId FROM temp.txn_Elements\"\n : \"SELECT ModelId, ChangeType, ECClassId FROM temp.txn_Models\";\n iModel.withPreparedSqliteStatement(select, (sql: SqliteStatement) => {\n const stmt = sql.stmt;\n while (sql.step() === DbResult.BE_SQLITE_ROW) {\n const id = stmt.getValueId(0);\n const classId = stmt.getValueId(2);\n switch (stmt.getValueInteger(1)) {\n case 0:\n changes._inserted.insert(id, classId);\n break;\n case 1:\n changes._updated.insert(id, classId);\n break;\n case 2:\n changes._deleted.insert(id, classId);\n break;\n }\n\n if (++changes._currSize >= maxSize)\n changes.sendEvent(iModel, changedEvent, evtName);\n }\n });\n\n changes.sendEvent(iModel, changedEvent, evtName);\n } catch (err) {\n Logger.logError(BackendLoggerCategory.IModelDb, BentleyError.getErrorMessage(err));\n }\n }\n}\n\n/** Manages local changes to a [[BriefcaseDb]] or [[StandaloneDb]] via [Txns]($docs/learning/InteractiveEditing.md)\n * @public\n */\nexport class TxnManager {\n /** @internal */\n private _isDisposed = false;\n\n /** @internal */\n public get isDisposed(): boolean {\n return this._isDisposed;\n }\n\n /** @internal */\n constructor(private _iModel: BriefcaseDb | StandaloneDb) {\n _iModel.onBeforeClose.addOnce(() => {\n this._isDisposed = true;\n });\n }\n\n /** Array of errors from dependency propagation */\n public readonly validationErrors: ValidationError[] = [];\n\n private get _nativeDb() { return this._iModel.nativeDb; }\n private _getElementClass(elClassName: string): typeof Element {\n return this._iModel.getJsClass(elClassName) as unknown as typeof Element;\n }\n private _getRelationshipClass(relClassName: string): typeof Relationship {\n return this._iModel.getJsClass<typeof Relationship>(relClassName);\n }\n\n /** If a -watch file exists for this iModel, update its timestamp so watching processes can be\n * notified that we've modified the briefcase.\n */\n private touchWatchFile(): void {\n // This is an async call. We don't have any reason to await it.\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n touch(this._iModel.watchFilePathName, { nocreate: true });\n }\n\n /** @internal */\n protected _onBeforeOutputsHandled(elClassName: string, elId: Id64String): void {\n (this._getElementClass(elClassName) as any).onBeforeOutputsHandled(elId, this._iModel);\n }\n /** @internal */\n protected _onAllInputsHandled(elClassName: string, elId: Id64String): void {\n (this._getElementClass(elClassName) as any).onAllInputsHandled(elId, this._iModel);\n }\n /** @internal */\n protected _onRootChanged(props: RelationshipProps): void {\n this._getRelationshipClass(props.classFullName).onRootChanged(props, this._iModel);\n }\n /** @internal */\n protected _onDeletedDependency(props: RelationshipProps): void {\n this._getRelationshipClass(props.classFullName).onDeletedDependency(props, this._iModel);\n }\n /** @internal */\n protected _onBeginValidate() { this.validationErrors.length = 0; }\n\n /** called from native code after validation of a Txn, either from saveChanges or apply changeset.\n * @internal\n */\n protected _onEndValidate() {\n ChangedEntitiesProc.process(this._iModel, this);\n this.onEndValidation.raiseEvent();\n // TODO: if (this.validationErrors.length !== 0) throw new IModelError(validation ...)\n }\n\n /** @internal */\n protected _onGeometryChanged(modelProps: ModelGeometryChangesProps[]) {\n this.onGeometryChanged.raiseEvent(modelProps);\n IpcHost.notifyEditingScope(this._iModel, \"notifyGeometryChanged\", modelProps); // send to frontend\n }\n\n /** @internal */\n protected _onGeometryGuidsChanged(changes: ModelIdAndGeometryGuid[]): void {\n this.onModelGeometryChanged.raiseEvent(changes);\n IpcHost.notifyTxns(this._iModel, \"notifyGeometryGuidsChanged\", changes);\n }\n\n /** @internal */\n protected _onCommit() {\n this.onCommit.raiseEvent();\n IpcHost.notifyTxns(this._iModel, \"notifyCommit\");\n }\n\n /** @internal */\n protected _onCommitted() {\n this.touchWatchFile();\n this.onCommitted.raiseEvent();\n IpcHost.notifyTxns(this._iModel, \"notifyCommitted\", this.hasPendingTxns, Date.now());\n }\n\n /** @internal */\n protected _onReplayExternalTxns() {\n this.onReplayExternalTxns.raiseEvent();\n IpcHost.notifyTxns(this._iModel, \"notifyReplayExternalTxns\");\n }\n\n /** @internal */\n protected _onReplayedExternalTxns() {\n this.onReplayedExternalTxns.raiseEvent();\n IpcHost.notifyTxns(this._iModel, \"notifyReplayedExternalTxns\");\n }\n\n /** @internal */\n protected _onChangesApplied() {\n ChangedEntitiesProc.process(this._iModel, this);\n this.onChangesApplied.raiseEvent();\n IpcHost.notifyTxns(this._iModel, \"notifyChangesApplied\");\n }\n\n /** @internal */\n protected _onBeforeUndoRedo(isUndo: boolean) {\n this.onBeforeUndoRedo.raiseEvent(isUndo);\n IpcHost.notifyTxns(this._iModel, \"notifyBeforeUndoRedo\", isUndo);\n }\n\n /** @internal */\n protected _onAfterUndoRedo(isUndo: boolean) {\n this.touchWatchFile();\n this.onAfterUndoRedo.raiseEvent(isUndo);\n IpcHost.notifyTxns(this._iModel, \"notifyAfterUndoRedo\", isUndo);\n }\n\n /** Dependency handlers may call method this to report a validation error.\n * @param error The error. If error.fatal === true, the transaction will cancel rather than commit.\n */\n public reportError(error: ValidationError) {\n this.validationErrors.push(error);\n this._nativeDb.logTxnError(error.fatal);\n }\n\n /** Determine whether any fatal validation errors have occurred during dependency propagation. */\n public get hasFatalError(): boolean { return this._nativeDb.hasFatalTxnError(); }\n\n /** @internal */\n public readonly onEndValidation = new BeEvent<() => void>();\n\n /** Called after validation completes from [[IModelDb.saveChanges]].\n * The argument to the event holds the list of elements that were inserted, updated, and deleted.\n * @note If there are many changed elements in a single Txn, the notifications are sent in batches so this event *may be called multiple times* per Txn.\n */\n public readonly onElementsChanged = new BeEvent<(changes: TxnChangedEntities) => void>();\n\n /** Called after validation completes from [[IModelDb.saveChanges]].\n * The argument to the event holds the list of models that were inserted, updated, and deleted.\n * @note If there are many changed models in a single Txn, the notifications are sent in batches so this event *may be called multiple times* per Txn.\n */\n public readonly onModelsChanged = new BeEvent<(changes: TxnChangedEntities) => void>();\n\n /** Event raised after the geometry within one or more [[GeometricModel]]s is modified by applying a changeset or validation of a transaction.\n * A model's geometry can change as a result of:\n * - Insertion or deletion of a geometric element within the model; or\n * - Modification of an existing element's geometric properties; or\n * - An explicit request to flag it as changed via [[IModelDb.Models.updateModel]].\n */\n public readonly onModelGeometryChanged = new BeEvent<(changes: ReadonlyArray<ModelIdAndGeometryGuid>) => void>();\n\n public readonly onGeometryChanged = new BeEvent<(models: ModelGeometryChangesProps[]) => void>();\n /** Event raised before a commit operation is performed. Initiated by a call to [[IModelDb.saveChanges]], unless there are no changes to save. */\n public readonly onCommit = new BeEvent<() => void>();\n /** Event raised after a commit operation has been performed. Initiated by a call to [[IModelDb.saveChanges]], even if there were no changes to save. */\n public readonly onCommitted = new BeEvent<() => void>();\n /** Event raised after a ChangeSet has been applied to this briefcase */\n public readonly onChangesApplied = new BeEvent<() => void>();\n /** Event raised before an undo/redo operation is performed. */\n public readonly onBeforeUndoRedo = new BeEvent<(isUndo: boolean) => void>();\n /** Event raised after an undo/redo operation has been performed.\n * @param _action The action that was performed.\n */\n public readonly onAfterUndoRedo = new BeEvent<(isUndo: boolean) => void>();\n /** Event raised for a read-only briefcase that was opened with the `watchForChanges` flag enabled when changes made by another connection are applied to the briefcase.\n * @see [[onReplayedExternalTxns]] for the event raised after all such changes have been applied.\n */\n public readonly onReplayExternalTxns = new BeEvent<() => void>();\n /** Event raised for a read-only briefcase that was opened with the `watchForChanges` flag enabled when changes made by another connection are applied to the briefcase.\n * @see [[onReplayExternalTxns]] for the event raised before the changes are applied.\n */\n public readonly onReplayedExternalTxns = new BeEvent<() => void>();\n\n /**\n * Restart the current TxnManager session. This causes all Txns in the current session to no longer be undoable (as if the file was closed\n * and reopened.)\n * @note This can be quite disconcerting to the user expecting to be able to undo previously made changes. It should only be used\n * under extreme circumstances where damage to the file or session could happen if the currently committed are reversed. Use sparingly and with care.\n * Probably a good idea to alert the user it happened.\n */\n public restartSession() {\n this._nativeDb.restartTxnSession();\n }\n\n /** Determine whether current txn is propagating indirect changes or not. */\n public get isIndirectChanges(): boolean { return this._nativeDb.isIndirectChanges(); }\n\n /** Determine if there are currently any reversible (undoable) changes from this editing session. */\n public get isUndoPossible(): boolean { return this._nativeDb.isUndoPossible(); }\n\n /** Determine if there are currently any reinstatable (redoable) changes */\n public get isRedoPossible(): boolean { return this._nativeDb.isRedoPossible(); }\n\n /** Get the description of the operation that would be reversed by calling reverseTxns(1).\n * This is useful for showing the operation that would be undone, for example in a menu.\n */\n public getUndoString(): string { return this._nativeDb.getUndoString(); }\n\n /** Get a description of the operation that would be reinstated by calling reinstateTxn.\n * This is useful for showing the operation that would be redone, in a pull-down menu for example.\n */\n public getRedoString(): string { return this._nativeDb.getRedoString(); }\n\n /** Begin a new multi-Txn operation. This can be used to cause a series of Txns that would normally\n * be considered separate actions for undo to be grouped into a single undoable operation. This means that when reverseTxns(1) is called,\n * the entire group of changes are undone together. Multi-Txn operations can be nested and until the outermost operation is closed\n * all changes constitute a single operation.\n * @note This method must always be paired with a call to endMultiTxnAction.\n */\n public beginMultiTxnOperation(): DbResult { return this._nativeDb.beginMultiTxnOperation(); }\n\n /** End a multi-Txn operation */\n public endMultiTxnOperation(): DbResult { return this._nativeDb.endMultiTxnOperation(); }\n\n /** Return the depth of the multi-Txn stack. Generally for diagnostic use only. */\n public getMultiTxnOperationDepth(): number { return this._nativeDb.getMultiTxnOperationDepth(); }\n\n /** Reverse (undo) the most recent operation(s) to this IModelDb.\n * @param numOperations the number of operations to reverse. If this is greater than 1, the entire set of operations will\n * be reinstated together when/if ReinstateTxn is called.\n * @note If there are any outstanding uncommitted changes, they are reversed.\n * @note The term \"operation\" is used rather than Txn, since multiple Txns can be grouped together via [[beginMultiTxnOperation]]. So,\n * even if numOperations is 1, multiple Txns may be reversed if they were grouped together when they were made.\n * @note If numOperations is too large only the operations are reversible are reversed.\n */\n public reverseTxns(numOperations: number): IModelStatus {\n return this._iModel.reverseTxns(numOperations);\n }\n\n /** Reverse the most recent operation. */\n public reverseSingleTxn(): IModelStatus { return this.reverseTxns(1); }\n\n /** Reverse all changes back to the beginning of the session. */\n public reverseAll(): IModelStatus { return this._nativeDb.reverseAll(); }\n\n /** Reverse all changes back to a previously saved TxnId.\n * @param txnId a TxnId obtained from a previous call to GetCurrentTxnId.\n * @returns Success if the transactions were reversed, error status otherwise.\n * @see [[getCurrentTxnId]] [[cancelTo]]\n */\n public reverseTo(txnId: TxnIdString): IModelStatus { return this._nativeDb.reverseTo(txnId); }\n\n /** Reverse and then cancel (make non-reinstatable) all changes back to a previous TxnId.\n * @param txnId a TxnId obtained from a previous call to [[getCurrentTxnId]]\n * @returns Success if the transactions were reversed and cleared, error status otherwise.\n */\n public cancelTo(txnId: TxnIdString): IModelStatus { return this._nativeDb.cancelTo(txnId); }\n\n /** Reinstate the most recently reversed transaction. Since at any time multiple transactions can be reversed, it\n * may take multiple calls to this method to reinstate all reversed operations.\n * @returns Success if a reversed transaction was reinstated, error status otherwise.\n * @note If there are any outstanding uncommitted changes, they are canceled before the Txn is reinstated.\n */\n public reinstateTxn(): IModelStatus { return this._iModel.reinstateTxn(); }\n\n /** Get the Id of the first transaction, if any.\n */\n public queryFirstTxnId(): TxnIdString { return this._nativeDb.queryFirstTxnId(); }\n\n /** Get the successor of the specified TxnId */\n public queryNextTxnId(txnId: TxnIdString): TxnIdString { return this._nativeDb.queryNextTxnId(txnId); }\n\n /** Get the predecessor of the specified TxnId */\n public queryPreviousTxnId(txnId: TxnIdString): TxnIdString { return this._nativeDb.queryPreviousTxnId(txnId); }\n\n /** Get the Id of the current (tip) transaction. */\n public getCurrentTxnId(): TxnIdString { return this._nativeDb.getCurrentTxnId(); }\n\n /** Get the description that was supplied when the specified transaction was saved. */\n public getTxnDescription(txnId: TxnIdString): string { return this._nativeDb.getTxnDescription(txnId); }\n\n /** Test if a TxnId is valid */\n public isTxnIdValid(txnId: TxnIdString): boolean { return this._nativeDb.isTxnIdValid(txnId); }\n\n /** Query if there are any pending Txns in this IModelDb that are waiting to be pushed. */\n public get hasPendingTxns(): boolean { return this._nativeDb.hasPendingTxns(); }\n\n /** Query if there are any changes in memory that have yet to be saved to the IModelDb. */\n public get hasUnsavedChanges(): boolean { return this._nativeDb.hasUnsavedChanges(); }\n\n /** Query if there are un-saved or un-pushed local changes. */\n public get hasLocalChanges(): boolean { return this.hasUnsavedChanges || this.hasPendingTxns; }\n\n /** Obtain a list of the EC instances that have been changed locally by the [[BriefcaseDb]] associated with this `TxnManager` and have not yet been pushed to the iModel.\n * @beta\n */\n public queryLocalChanges(args?: QueryLocalChangesArgs): Iterable<ChangeInstanceKey> {\n if (!args) {\n args = { includedClasses: [], includeUnsavedChanges: false };\n }\n return this._nativeDb.getLocalChanges(args.includedClasses ?? [], args.includeUnsavedChanges ?? false);\n }\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"TxnManager.js","sourceRoot":"","sources":["../../src/TxnManager.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,sDAE6B;AAE7B,mEAAgE;AAEhE,uCAAoC;AAGpC,gDAA+C;AA0D/C,oCAAoC;AACpC,SAAgB,sBAAsB,CAAC,GAAW;IAChD,MAAM,OAAO,GAAG,mBAAmB,CAAC,WAAW,CAAC;IAChD,mBAAmB,CAAC,WAAW,GAAG,GAAG,CAAC;IACtC,OAAO,OAAO,CAAC;AACjB,CAAC;AAJD,wDAIC;AAED,iIAAiI;AACjI,MAAM,oBAAoB;IAKxB,YAAmB,QAA8B;QAJjC,cAAS,GAAG,IAAI,+BAAgB,EAAE,CAAC;QAClC,kBAAa,GAAa,EAAE,CAAC;QAI5C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,QAAoB,EAAE,OAAmB;QACrD,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACpD,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAClD,IAAA,qBAAM,EAAC,UAAU,IAAI,CAAC,CAAC,CAAC;QACxB,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,IA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F;IAC/E,iBAAiB,CAAC,KAAkB,IAAY,OAAO,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAExG,+BAA+B;IACxB,YAAY,CAAC,KAAkB,IAAa,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE/F,2FAA2F;IAC3F,IAAW,cAAc,KAAc,OAAO,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;IAEhF,0FAA0F;IAC1F,IAAW,iBAAiB,KAAc,OAAO,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC;IAEtF,8DAA8D;IAC9D,IAAW,eAAe,KAAc,OAAO,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;IAE/F;;MAEE;IACK,iBAAiB,CAAC,IAA4B;QACnD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,IAAI,GAAG,EAAE,eAAe,EAAE,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC;QAC/D,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,eAAe,IAAI,EAAE,EAAE,IAAI,CAAC,qBAAqB,IAAI,KAAK,CAAC,CAAC;IACzG,CAAC;CACF;AAzSD,gCAySC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module iModels\r\n */\r\n\r\nimport * as touch from \"touch\";\r\nimport {\r\n assert, BeEvent, BentleyError, compareStrings, CompressedId64Set, DbResult, Id64Array, Id64String, IModelStatus, IndexMap, Logger, OrderedId64Array,\r\n} from \"@itwin/core-bentley\";\r\nimport { EntityIdAndClassIdIterable, ModelGeometryChangesProps, ModelIdAndGeometryGuid, NotifyEntitiesChangedArgs, NotifyEntitiesChangedMetadata } from \"@itwin/core-common\";\r\nimport { BackendLoggerCategory } from \"./BackendLoggerCategory\";\r\nimport { BriefcaseDb, StandaloneDb } from \"./IModelDb\";\r\nimport { IpcHost } from \"./IpcHost\";\r\nimport { Relationship, RelationshipProps } from \"./Relationship\";\r\nimport { SqliteStatement } from \"./SqliteStatement\";\r\nimport { _nativeDb } from \"./internal/Symbols\";\r\n\r\n/** A string that identifies a Txn.\r\n * @public\r\n */\r\nexport type TxnIdString = string;\r\n\r\n/** An error generated during dependency validation.\r\n * @see [[TxnManager.validationErrors]].\r\n * @public\r\n */\r\nexport interface ValidationError {\r\n /** If true, txn is aborted. */\r\n fatal: boolean;\r\n /** The type of error. */\r\n errorType: string;\r\n /** Optional description of what went wrong. */\r\n message?: string;\r\n}\r\n\r\n/** Describes a set of [[Element]]s or [[Model]]s that changed as part of a transaction.\r\n * @see [[TxnManager.onElementsChanged]] and [[TxnManager.onModelsChanged]].\r\n * @public\r\n */\r\nexport interface TxnChangedEntities {\r\n /** The entities that were inserted by the transaction. */\r\n readonly inserts: EntityIdAndClassIdIterable;\r\n /** The entities that were deleted by the transaction. */\r\n readonly deletes: EntityIdAndClassIdIterable;\r\n /** The entities that were modified by the transaction, including any [[Element]]s for which one of their [[ElementAspect]]s was changed. */\r\n readonly updates: EntityIdAndClassIdIterable;\r\n}\r\n\r\n/** Arguments supplied to [[TxnManager.queryLocalChanges]].\r\n * @beta\r\n */\r\nexport interface QueryLocalChangesArgs {\r\n /** If supplied and non-empty, restricts the results to include only EC instances belonging to the specified classes or subclasses thereof. */\r\n readonly includedClasses?: string[];\r\n /** If `true`, include changes that have not yet been saved. */\r\n readonly includeUnsavedChanges?: boolean;\r\n}\r\n\r\n/** Represents a change (insertion, deletion, or modification) to a single EC instance made in a local [[BriefcaseDb]].\r\n * @see [[TxnManager.queryLocalChanges]] to iterate all of the changed instances.\r\n* @beta\r\n*/\r\nexport interface ChangeInstanceKey {\r\n /** ECInstanceId of the instance. */\r\n id: Id64String;\r\n /** Fully-qualified class name of the instance. */\r\n classFullName: string;\r\n /** The type of change. */\r\n changeType: \"inserted\" | \"updated\" | \"deleted\";\r\n}\r\n\r\ntype EntitiesChangedEvent = BeEvent<(changes: TxnChangedEntities) => void>;\r\n\r\n/** Strictly for tests. @internal */\r\nexport function setMaxEntitiesPerEvent(max: number): number {\r\n const prevMax = ChangedEntitiesProc.maxPerEvent;\r\n ChangedEntitiesProc.maxPerEvent = max;\r\n return prevMax;\r\n}\r\n\r\n/** Maintains an ordered array of entity Ids and a parallel array containing the index of the corresponding entity's class Id. */\r\nclass ChangedEntitiesArray {\r\n public readonly entityIds = new OrderedId64Array();\r\n private readonly _classIndices: number[] = [];\r\n private readonly _classIds: IndexMap<Id64String>;\r\n\r\n public constructor(classIds: IndexMap<Id64String>) {\r\n this._classIds = classIds;\r\n }\r\n\r\n public insert(entityId: Id64String, classId: Id64String): void {\r\n const entityIndex = this.entityIds.insert(entityId);\r\n const classIndex = this._classIds.insert(classId);\r\n assert(classIndex >= 0);\r\n if (this.entityIds.length !== this._classIndices.length) {\r\n // New entity - insert corresponding class index entry.\r\n this._classIndices.splice(entityIndex, 0, classIndex);\r\n } else {\r\n // Existing entity - update corresponding class index.\r\n // (We do this because apparently connectors can (very rarely) change the class Id of an existing element).\r\n this._classIndices[entityIndex] = classIndex;\r\n }\r\n\r\n assert(this.entityIds.length === this._classIndices.length);\r\n }\r\n\r\n public clear(): void {\r\n this.entityIds.clear();\r\n this._classIndices.length = 0;\r\n }\r\n\r\n public addToChangedEntities(entities: NotifyEntitiesChangedArgs, type: \"deleted\" | \"inserted\" | \"updated\"): void {\r\n if (this.entityIds.length > 0)\r\n entities[type] = CompressedId64Set.compressIds(this.entityIds);\r\n\r\n entities[`${type}Meta`] = this._classIndices;\r\n }\r\n\r\n public iterable(classIds: Id64Array): EntityIdAndClassIdIterable {\r\n function* iterator(entityIds: ReadonlyArray<Id64String>, classIndices: number[]) {\r\n const entity = { id: \"\", classId: \"\" };\r\n for (let i = 0; i < entityIds.length; i++) {\r\n entity.id = entityIds[i];\r\n entity.classId = classIds[classIndices[i]];\r\n yield entity;\r\n }\r\n }\r\n\r\n return {\r\n [Symbol.iterator]: () => iterator(this.entityIds.array, this._classIndices),\r\n };\r\n }\r\n}\r\n\r\nclass ChangedEntitiesProc {\r\n private readonly _classIds = new IndexMap<Id64String>((lhs, rhs) => compareStrings(lhs, rhs));\r\n private readonly _inserted = new ChangedEntitiesArray(this._classIds);\r\n private readonly _deleted = new ChangedEntitiesArray(this._classIds);\r\n private readonly _updated = new ChangedEntitiesArray(this._classIds);\r\n private _currSize = 0;\r\n\r\n public static maxPerEvent = 1000;\r\n\r\n public static process(iModel: BriefcaseDb | StandaloneDb, mgr: TxnManager): void {\r\n if (mgr.isDisposed) {\r\n // The iModel is being closed. Do not prepare new sqlite statements.\r\n return;\r\n }\r\n\r\n this.processChanges(iModel, mgr.onElementsChanged, \"notifyElementsChanged\");\r\n this.processChanges(iModel, mgr.onModelsChanged, \"notifyModelsChanged\");\r\n }\r\n\r\n private populateMetadata(db: BriefcaseDb | StandaloneDb, classIds: Id64Array): NotifyEntitiesChangedMetadata[] {\r\n // Ensure metadata for all class Ids is loaded. Loading metadata for a derived class loads metadata for all of its superclasses.\r\n const classIdsToLoad = classIds.filter((x) => undefined === db.classMetaDataRegistry.findByClassId(x));\r\n if (classIdsToLoad.length > 0) {\r\n const classIdsStr = classIdsToLoad.join(\",\");\r\n const sql = `SELECT ec_class.Name, ec_class.Id, ec_schema.Name FROM ec_class JOIN ec_schema WHERE ec_schema.Id = ec_class.SchemaId AND ec_class.Id IN (${classIdsStr})`;\r\n db.withPreparedSqliteStatement(sql, (stmt) => {\r\n while (stmt.step() === DbResult.BE_SQLITE_ROW) {\r\n const classFullName = `${stmt.getValueString(2)}:${stmt.getValueString(0)}`;\r\n db.tryGetMetaData(classFullName);\r\n }\r\n });\r\n }\r\n\r\n // Define array indices for the metadata array entries correlating to the class Ids in the input list.\r\n const nameToIndex = new Map<string, number>();\r\n for (const classId of classIds) {\r\n const meta = db.classMetaDataRegistry.findByClassId(classId);\r\n nameToIndex.set(meta?.ecclass ?? \"\", nameToIndex.size);\r\n }\r\n\r\n const result: NotifyEntitiesChangedMetadata[] = [];\r\n\r\n function addMetadata(name: string, index: number): void {\r\n const bases: number[] = [];\r\n result[index] = { name, bases };\r\n\r\n const meta = db.tryGetMetaData(name);\r\n if (!meta) {\r\n return;\r\n }\r\n\r\n for (const baseClassName of meta.baseClasses) {\r\n let baseClassIndex = nameToIndex.get(baseClassName);\r\n if (undefined === baseClassIndex) {\r\n baseClassIndex = nameToIndex.size;\r\n nameToIndex.set(baseClassName, baseClassIndex);\r\n addMetadata(baseClassName, baseClassIndex);\r\n }\r\n\r\n bases.push(baseClassIndex);\r\n }\r\n }\r\n\r\n for (const [name, index] of nameToIndex) {\r\n if (index >= classIds.length) {\r\n // Entries beyond this are base classes for the classes in `classIds` - don't reprocess them.\r\n break;\r\n }\r\n\r\n addMetadata(name, index);\r\n }\r\n\r\n return result;\r\n }\r\n\r\n private sendEvent(iModel: BriefcaseDb | StandaloneDb, evt: EntitiesChangedEvent, evtName: \"notifyElementsChanged\" | \"notifyModelsChanged\") {\r\n if (this._currSize === 0)\r\n return;\r\n\r\n const classIds = this._classIds.toArray();\r\n\r\n // Notify backend listeners.\r\n const txnEntities: TxnChangedEntities = {\r\n inserts: this._inserted.iterable(classIds),\r\n deletes: this._deleted.iterable(classIds),\r\n updates: this._updated.iterable(classIds),\r\n };\r\n evt.raiseEvent(txnEntities);\r\n\r\n // Notify frontend listeners.\r\n const entities: NotifyEntitiesChangedArgs = {\r\n insertedMeta: [],\r\n updatedMeta: [],\r\n deletedMeta: [],\r\n meta: this.populateMetadata(iModel, classIds),\r\n };\r\n\r\n this._inserted.addToChangedEntities(entities, \"inserted\");\r\n this._deleted.addToChangedEntities(entities, \"deleted\");\r\n this._updated.addToChangedEntities(entities, \"updated\");\r\n\r\n IpcHost.notifyTxns(iModel, evtName, entities);\r\n\r\n // Reset state.\r\n this._inserted.clear();\r\n this._deleted.clear();\r\n this._updated.clear();\r\n this._classIds.clear();\r\n this._currSize = 0;\r\n }\r\n\r\n private static processChanges(iModel: BriefcaseDb | StandaloneDb, changedEvent: EntitiesChangedEvent, evtName: \"notifyElementsChanged\" | \"notifyModelsChanged\") {\r\n try {\r\n const maxSize = this.maxPerEvent;\r\n const changes = new ChangedEntitiesProc();\r\n const select = \"notifyElementsChanged\" === evtName\r\n ? \"SELECT ElementId, ChangeType, ECClassId FROM temp.txn_Elements\"\r\n : \"SELECT ModelId, ChangeType, ECClassId FROM temp.txn_Models\";\r\n iModel.withPreparedSqliteStatement(select, (sql: SqliteStatement) => {\r\n const stmt = sql.stmt;\r\n while (sql.step() === DbResult.BE_SQLITE_ROW) {\r\n const id = stmt.getValueId(0);\r\n const classId = stmt.getValueId(2);\r\n switch (stmt.getValueInteger(1)) {\r\n case 0:\r\n changes._inserted.insert(id, classId);\r\n break;\r\n case 1:\r\n changes._updated.insert(id, classId);\r\n break;\r\n case 2:\r\n changes._deleted.insert(id, classId);\r\n break;\r\n }\r\n\r\n if (++changes._currSize >= maxSize)\r\n changes.sendEvent(iModel, changedEvent, evtName);\r\n }\r\n });\r\n\r\n changes.sendEvent(iModel, changedEvent, evtName);\r\n } catch (err) {\r\n Logger.logError(BackendLoggerCategory.IModelDb, BentleyError.getErrorMessage(err));\r\n }\r\n }\r\n}\r\n\r\n/** Manages local changes to a [[BriefcaseDb]] or [[StandaloneDb]] via [Txns]($docs/learning/InteractiveEditing.md)\r\n * @public\r\n */\r\nexport class TxnManager {\r\n /** @internal */\r\n private _isDisposed = false;\r\n\r\n /** @internal */\r\n public get isDisposed(): boolean {\r\n return this._isDisposed;\r\n }\r\n\r\n /** @internal */\r\n constructor(private _iModel: BriefcaseDb | StandaloneDb) {\r\n _iModel.onBeforeClose.addOnce(() => {\r\n this._isDisposed = true;\r\n });\r\n }\r\n\r\n /** Array of errors from dependency propagation */\r\n public readonly validationErrors: ValidationError[] = [];\r\n\r\n private get _nativeDb() { return this._iModel[_nativeDb]; }\r\n private _getElementClass(elClassName: string): typeof Element {\r\n return this._iModel.getJsClass(elClassName) as unknown as typeof Element;\r\n }\r\n private _getRelationshipClass(relClassName: string): typeof Relationship {\r\n return this._iModel.getJsClass<typeof Relationship>(relClassName);\r\n }\r\n\r\n /** If a -watch file exists for this iModel, update its timestamp so watching processes can be\r\n * notified that we've modified the briefcase.\r\n * @internal Used by IModelDb on push/pull.\r\n */\r\n public touchWatchFile(): void {\r\n // This is an async call. We don't have any reason to await it.\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n touch(this._iModel.watchFilePathName, { nocreate: true });\r\n }\r\n\r\n /** @internal */\r\n protected _onBeforeOutputsHandled(elClassName: string, elId: Id64String): void {\r\n (this._getElementClass(elClassName) as any).onBeforeOutputsHandled(elId, this._iModel);\r\n }\r\n /** @internal */\r\n protected _onAllInputsHandled(elClassName: string, elId: Id64String): void {\r\n (this._getElementClass(elClassName) as any).onAllInputsHandled(elId, this._iModel);\r\n }\r\n /** @internal */\r\n protected _onRootChanged(props: RelationshipProps): void {\r\n this._getRelationshipClass(props.classFullName).onRootChanged(props, this._iModel);\r\n }\r\n /** @internal */\r\n protected _onDeletedDependency(props: RelationshipProps): void {\r\n this._getRelationshipClass(props.classFullName).onDeletedDependency(props, this._iModel);\r\n }\r\n /** @internal */\r\n protected _onBeginValidate() { this.validationErrors.length = 0; }\r\n\r\n /** called from native code after validation of a Txn, either from saveChanges or apply changeset.\r\n * @internal\r\n */\r\n protected _onEndValidate() {\r\n ChangedEntitiesProc.process(this._iModel, this);\r\n this.onEndValidation.raiseEvent();\r\n // TODO: if (this.validationErrors.length !== 0) throw new IModelError(validation ...)\r\n }\r\n\r\n /** @internal */\r\n protected _onGeometryChanged(modelProps: ModelGeometryChangesProps[]) {\r\n this.onGeometryChanged.raiseEvent(modelProps);\r\n IpcHost.notifyEditingScope(this._iModel, \"notifyGeometryChanged\", modelProps); // send to frontend\r\n }\r\n\r\n /** @internal */\r\n protected _onGeometryGuidsChanged(changes: ModelIdAndGeometryGuid[]): void {\r\n this.onModelGeometryChanged.raiseEvent(changes);\r\n IpcHost.notifyTxns(this._iModel, \"notifyGeometryGuidsChanged\", changes);\r\n }\r\n\r\n /** @internal */\r\n protected _onCommit() {\r\n this.onCommit.raiseEvent();\r\n IpcHost.notifyTxns(this._iModel, \"notifyCommit\");\r\n }\r\n\r\n /** @internal */\r\n protected _onCommitted() {\r\n this.touchWatchFile();\r\n this.onCommitted.raiseEvent();\r\n IpcHost.notifyTxns(this._iModel, \"notifyCommitted\", this.hasPendingTxns, Date.now());\r\n }\r\n\r\n /** @internal */\r\n protected _onReplayExternalTxns() {\r\n this.onReplayExternalTxns.raiseEvent();\r\n IpcHost.notifyTxns(this._iModel, \"notifyReplayExternalTxns\");\r\n }\r\n\r\n /** @internal */\r\n protected _onReplayedExternalTxns() {\r\n this.onReplayedExternalTxns.raiseEvent();\r\n IpcHost.notifyTxns(this._iModel, \"notifyReplayedExternalTxns\");\r\n }\r\n\r\n /** @internal */\r\n protected _onChangesApplied() {\r\n ChangedEntitiesProc.process(this._iModel, this);\r\n this.onChangesApplied.raiseEvent();\r\n IpcHost.notifyTxns(this._iModel, \"notifyChangesApplied\");\r\n }\r\n\r\n /** @internal */\r\n protected _onBeforeUndoRedo(isUndo: boolean) {\r\n this.onBeforeUndoRedo.raiseEvent(isUndo);\r\n IpcHost.notifyTxns(this._iModel, \"notifyBeforeUndoRedo\", isUndo);\r\n }\r\n\r\n /** @internal */\r\n protected _onAfterUndoRedo(isUndo: boolean) {\r\n this.touchWatchFile();\r\n this.onAfterUndoRedo.raiseEvent(isUndo);\r\n IpcHost.notifyTxns(this._iModel, \"notifyAfterUndoRedo\", isUndo);\r\n }\r\n\r\n /** Dependency handlers may call method this to report a validation error.\r\n * @param error The error. If error.fatal === true, the transaction will cancel rather than commit.\r\n */\r\n public reportError(error: ValidationError) {\r\n this.validationErrors.push(error);\r\n this._nativeDb.logTxnError(error.fatal);\r\n }\r\n\r\n /** Determine whether any fatal validation errors have occurred during dependency propagation. */\r\n public get hasFatalError(): boolean { return this._nativeDb.hasFatalTxnError(); }\r\n\r\n /** @internal */\r\n public readonly onEndValidation = new BeEvent<() => void>();\r\n\r\n /** Called after validation completes from [[IModelDb.saveChanges]].\r\n * The argument to the event holds the list of elements that were inserted, updated, and deleted.\r\n * @note If there are many changed elements in a single Txn, the notifications are sent in batches so this event *may be called multiple times* per Txn.\r\n */\r\n public readonly onElementsChanged = new BeEvent<(changes: TxnChangedEntities) => void>();\r\n\r\n /** Called after validation completes from [[IModelDb.saveChanges]].\r\n * The argument to the event holds the list of models that were inserted, updated, and deleted.\r\n * @note If there are many changed models in a single Txn, the notifications are sent in batches so this event *may be called multiple times* per Txn.\r\n */\r\n public readonly onModelsChanged = new BeEvent<(changes: TxnChangedEntities) => void>();\r\n\r\n /** Event raised after the geometry within one or more [[GeometricModel]]s is modified by applying a changeset or validation of a transaction.\r\n * A model's geometry can change as a result of:\r\n * - Insertion or deletion of a geometric element within the model; or\r\n * - Modification of an existing element's geometric properties; or\r\n * - An explicit request to flag it as changed via [[IModelDb.Models.updateModel]].\r\n */\r\n public readonly onModelGeometryChanged = new BeEvent<(changes: ReadonlyArray<ModelIdAndGeometryGuid>) => void>();\r\n\r\n public readonly onGeometryChanged = new BeEvent<(models: ModelGeometryChangesProps[]) => void>();\r\n /** Event raised before a commit operation is performed. Initiated by a call to [[IModelDb.saveChanges]], unless there are no changes to save. */\r\n public readonly onCommit = new BeEvent<() => void>();\r\n /** Event raised after a commit operation has been performed. Initiated by a call to [[IModelDb.saveChanges]], even if there were no changes to save. */\r\n public readonly onCommitted = new BeEvent<() => void>();\r\n /** Event raised after a ChangeSet has been applied to this briefcase */\r\n public readonly onChangesApplied = new BeEvent<() => void>();\r\n /** Event raised before an undo/redo operation is performed. */\r\n public readonly onBeforeUndoRedo = new BeEvent<(isUndo: boolean) => void>();\r\n /** Event raised after an undo/redo operation has been performed.\r\n * @param _action The action that was performed.\r\n */\r\n public readonly onAfterUndoRedo = new BeEvent<(isUndo: boolean) => void>();\r\n /** Event raised for a read-only briefcase that was opened with the `watchForChanges` flag enabled when changes made by another connection are applied to the briefcase.\r\n * @see [[onReplayedExternalTxns]] for the event raised after all such changes have been applied.\r\n */\r\n public readonly onReplayExternalTxns = new BeEvent<() => void>();\r\n /** Event raised for a read-only briefcase that was opened with the `watchForChanges` flag enabled when changes made by another connection are applied to the briefcase.\r\n * @see [[onReplayExternalTxns]] for the event raised before the changes are applied.\r\n */\r\n public readonly onReplayedExternalTxns = new BeEvent<() => void>();\r\n\r\n /**\r\n * Restart the current TxnManager session. This causes all Txns in the current session to no longer be undoable (as if the file was closed\r\n * and reopened.)\r\n * @note This can be quite disconcerting to the user expecting to be able to undo previously made changes. It should only be used\r\n * under extreme circumstances where damage to the file or session could happen if the currently committed are reversed. Use sparingly and with care.\r\n * Probably a good idea to alert the user it happened.\r\n */\r\n public restartSession() {\r\n this._nativeDb.restartTxnSession();\r\n }\r\n\r\n /** Determine whether current txn is propagating indirect changes or not. */\r\n public get isIndirectChanges(): boolean { return this._nativeDb.isIndirectChanges(); }\r\n\r\n /** Determine if there are currently any reversible (undoable) changes from this editing session. */\r\n public get isUndoPossible(): boolean { return this._nativeDb.isUndoPossible(); }\r\n\r\n /** Determine if there are currently any reinstatable (redoable) changes */\r\n public get isRedoPossible(): boolean { return this._nativeDb.isRedoPossible(); }\r\n\r\n /** Get the description of the operation that would be reversed by calling reverseTxns(1).\r\n * This is useful for showing the operation that would be undone, for example in a menu.\r\n */\r\n public getUndoString(): string { return this._nativeDb.getUndoString(); }\r\n\r\n /** Get a description of the operation that would be reinstated by calling reinstateTxn.\r\n * This is useful for showing the operation that would be redone, in a pull-down menu for example.\r\n */\r\n public getRedoString(): string { return this._nativeDb.getRedoString(); }\r\n\r\n /** Begin a new multi-Txn operation. This can be used to cause a series of Txns that would normally\r\n * be considered separate actions for undo to be grouped into a single undoable operation. This means that when reverseTxns(1) is called,\r\n * the entire group of changes are undone together. Multi-Txn operations can be nested and until the outermost operation is closed\r\n * all changes constitute a single operation.\r\n * @note This method must always be paired with a call to endMultiTxnAction.\r\n */\r\n public beginMultiTxnOperation(): DbResult { return this._nativeDb.beginMultiTxnOperation(); }\r\n\r\n /** End a multi-Txn operation */\r\n public endMultiTxnOperation(): DbResult { return this._nativeDb.endMultiTxnOperation(); }\r\n\r\n /** Return the depth of the multi-Txn stack. Generally for diagnostic use only. */\r\n public getMultiTxnOperationDepth(): number { return this._nativeDb.getMultiTxnOperationDepth(); }\r\n\r\n /** Reverse (undo) the most recent operation(s) to this IModelDb.\r\n * @param numOperations the number of operations to reverse. If this is greater than 1, the entire set of operations will\r\n * be reinstated together when/if ReinstateTxn is called.\r\n * @note If there are any outstanding uncommitted changes, they are reversed.\r\n * @note The term \"operation\" is used rather than Txn, since multiple Txns can be grouped together via [[beginMultiTxnOperation]]. So,\r\n * even if numOperations is 1, multiple Txns may be reversed if they were grouped together when they were made.\r\n * @note If numOperations is too large only the operations are reversible are reversed.\r\n */\r\n public reverseTxns(numOperations: number): IModelStatus {\r\n return this._nativeDb.reverseTxns(numOperations);\r\n }\r\n\r\n /** Reverse the most recent operation. */\r\n public reverseSingleTxn(): IModelStatus { return this.reverseTxns(1); }\r\n\r\n /** Reverse all changes back to the beginning of the session. */\r\n public reverseAll(): IModelStatus { return this._nativeDb.reverseAll(); }\r\n\r\n /** Reverse all changes back to a previously saved TxnId.\r\n * @param txnId a TxnId obtained from a previous call to GetCurrentTxnId.\r\n * @returns Success if the transactions were reversed, error status otherwise.\r\n * @see [[getCurrentTxnId]] [[cancelTo]]\r\n */\r\n public reverseTo(txnId: TxnIdString): IModelStatus { return this._nativeDb.reverseTo(txnId); }\r\n\r\n /** Reverse and then cancel (make non-reinstatable) all changes back to a previous TxnId.\r\n * @param txnId a TxnId obtained from a previous call to [[getCurrentTxnId]]\r\n * @returns Success if the transactions were reversed and cleared, error status otherwise.\r\n */\r\n public cancelTo(txnId: TxnIdString): IModelStatus { return this._nativeDb.cancelTo(txnId); }\r\n\r\n /** Reinstate the most recently reversed transaction. Since at any time multiple transactions can be reversed, it\r\n * may take multiple calls to this method to reinstate all reversed operations.\r\n * @returns Success if a reversed transaction was reinstated, error status otherwise.\r\n * @note If there are any outstanding uncommitted changes, they are canceled before the Txn is reinstated.\r\n */\r\n public reinstateTxn(): IModelStatus { return this._iModel.reinstateTxn(); }\r\n\r\n /** Get the Id of the first transaction, if any.\r\n */\r\n public queryFirstTxnId(): TxnIdString { return this._nativeDb.queryFirstTxnId(); }\r\n\r\n /** Get the successor of the specified TxnId */\r\n public queryNextTxnId(txnId: TxnIdString): TxnIdString { return this._nativeDb.queryNextTxnId(txnId); }\r\n\r\n /** Get the predecessor of the specified TxnId */\r\n public queryPreviousTxnId(txnId: TxnIdString): TxnIdString { return this._nativeDb.queryPreviousTxnId(txnId); }\r\n\r\n /** Get the Id of the current (tip) transaction. */\r\n public getCurrentTxnId(): TxnIdString { return this._nativeDb.getCurrentTxnId(); }\r\n\r\n /** Get the description that was supplied when the specified transaction was saved. */\r\n public getTxnDescription(txnId: TxnIdString): string { return this._nativeDb.getTxnDescription(txnId); }\r\n\r\n /** Test if a TxnId is valid */\r\n public isTxnIdValid(txnId: TxnIdString): boolean { return this._nativeDb.isTxnIdValid(txnId); }\r\n\r\n /** Query if there are any pending Txns in this IModelDb that are waiting to be pushed. */\r\n public get hasPendingTxns(): boolean { return this._nativeDb.hasPendingTxns(); }\r\n\r\n /** Query if there are any changes in memory that have yet to be saved to the IModelDb. */\r\n public get hasUnsavedChanges(): boolean { return this._nativeDb.hasUnsavedChanges(); }\r\n\r\n /** Query if there are un-saved or un-pushed local changes. */\r\n public get hasLocalChanges(): boolean { return this.hasUnsavedChanges || this.hasPendingTxns; }\r\n\r\n /** Obtain a list of the EC instances that have been changed locally by the [[BriefcaseDb]] associated with this `TxnManager` and have not yet been pushed to the iModel.\r\n * @beta\r\n */\r\n public queryLocalChanges(args?: QueryLocalChangesArgs): Iterable<ChangeInstanceKey> {\r\n if (!args) {\r\n args = { includedClasses: [], includeUnsavedChanges: false };\r\n }\r\n return this._nativeDb.getLocalChanges(args.includedClasses ?? [], args.includeUnsavedChanges ?? false);\r\n }\r\n}\r\n\r\n"]}
|
|
@@ -14,7 +14,6 @@ import { IModelElementCloneContext } from "./IModelElementCloneContext";
|
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
16
|
export declare class ModelSelector extends DefinitionElement {
|
|
17
|
-
/** @internal */
|
|
18
17
|
static get className(): string;
|
|
19
18
|
/** The array of modelIds of the GeometricModels displayed by this ModelSelector */
|
|
20
19
|
models: Id64String[];
|
|
@@ -54,7 +53,6 @@ export declare class ModelSelector extends DefinitionElement {
|
|
|
54
53
|
* @public
|
|
55
54
|
*/
|
|
56
55
|
export declare class CategorySelector extends DefinitionElement {
|
|
57
|
-
/** @internal */
|
|
58
56
|
static get className(): string;
|
|
59
57
|
/** The array of element Ids of the Categories selected by this CategorySelector */
|
|
60
58
|
categories: Id64String[];
|
|
@@ -96,7 +94,6 @@ export declare class CategorySelector extends DefinitionElement {
|
|
|
96
94
|
* @public
|
|
97
95
|
*/
|
|
98
96
|
export declare abstract class ViewDefinition extends DefinitionElement {
|
|
99
|
-
/** @internal */
|
|
100
97
|
static get className(): string;
|
|
101
98
|
/** The element Id of the [[CategorySelector]] for this ViewDefinition */
|
|
102
99
|
categorySelectorId: Id64String;
|
|
@@ -109,7 +106,7 @@ export declare abstract class ViewDefinition extends DefinitionElement {
|
|
|
109
106
|
static readonly requiredReferenceKeys: ReadonlyArray<string>;
|
|
110
107
|
/** @alpha */
|
|
111
108
|
static readonly requiredReferenceKeyTypeMap: Record<string, ConcreteEntityTypes>;
|
|
112
|
-
/** @
|
|
109
|
+
/** @beta */
|
|
113
110
|
protected static onCloned(context: IModelElementCloneContext, sourceElementProps: ViewDefinitionProps, targetElementProps: ViewDefinitionProps): void;
|
|
114
111
|
/** Type guard for `instanceof ViewDefinition3d` */
|
|
115
112
|
isView3d(): this is ViewDefinition3d;
|
|
@@ -143,7 +140,6 @@ export declare abstract class ViewDefinition extends DefinitionElement {
|
|
|
143
140
|
*/
|
|
144
141
|
export declare abstract class ViewDefinition3d extends ViewDefinition {
|
|
145
142
|
private readonly _details;
|
|
146
|
-
/** @internal */
|
|
147
143
|
static get className(): string;
|
|
148
144
|
/** If true, camera is used. Otherwise, use an orthographic projection. */
|
|
149
145
|
cameraOn: boolean;
|
|
@@ -175,7 +171,6 @@ export declare abstract class ViewDefinition3d extends ViewDefinition {
|
|
|
175
171
|
* @public
|
|
176
172
|
*/
|
|
177
173
|
export declare class SpatialViewDefinition extends ViewDefinition3d {
|
|
178
|
-
/** @internal */
|
|
179
174
|
static get className(): string;
|
|
180
175
|
/** The Id of the [[ModelSelector]] for this SpatialViewDefinition. */
|
|
181
176
|
modelSelectorId: Id64String;
|
|
@@ -218,7 +213,6 @@ export declare class SpatialViewDefinition extends ViewDefinition3d {
|
|
|
218
213
|
* @public
|
|
219
214
|
*/
|
|
220
215
|
export declare class OrthographicViewDefinition extends SpatialViewDefinition {
|
|
221
|
-
/** @internal */
|
|
222
216
|
static get className(): string;
|
|
223
217
|
constructor(props: SpatialViewDefinitionProps, iModel: IModelDb);
|
|
224
218
|
/**
|
|
@@ -257,7 +251,6 @@ export declare class OrthographicViewDefinition extends SpatialViewDefinition {
|
|
|
257
251
|
*/
|
|
258
252
|
export declare class ViewDefinition2d extends ViewDefinition {
|
|
259
253
|
private readonly _details;
|
|
260
|
-
/** @internal */
|
|
261
254
|
static get className(): string;
|
|
262
255
|
/** The Id of the Model displayed by this view. */
|
|
263
256
|
baseModelId: Id64String;
|
|
@@ -279,7 +272,6 @@ export declare class ViewDefinition2d extends ViewDefinition {
|
|
|
279
272
|
* @public
|
|
280
273
|
*/
|
|
281
274
|
export declare class DrawingViewDefinition extends ViewDefinition2d {
|
|
282
|
-
/** @internal */
|
|
283
275
|
static get className(): string;
|
|
284
276
|
protected constructor(props: ViewDefinition2dProps, iModel: IModelDb);
|
|
285
277
|
/** Create a DrawingViewDefinition
|
|
@@ -311,21 +303,18 @@ export declare class DrawingViewDefinition extends ViewDefinition2d {
|
|
|
311
303
|
* @public
|
|
312
304
|
*/
|
|
313
305
|
export declare class SheetViewDefinition extends ViewDefinition2d {
|
|
314
|
-
/** @internal */
|
|
315
306
|
static get className(): string;
|
|
316
307
|
}
|
|
317
308
|
/** A ViewDefinition used to display a 2d template model.
|
|
318
309
|
* @internal
|
|
319
310
|
*/
|
|
320
311
|
export declare class TemplateViewDefinition2d extends ViewDefinition2d {
|
|
321
|
-
/** @internal */
|
|
322
312
|
static get className(): string;
|
|
323
313
|
}
|
|
324
314
|
/** A ViewDefinition used to display a 3d template model.
|
|
325
315
|
* @internal
|
|
326
316
|
*/
|
|
327
317
|
export declare class TemplateViewDefinition3d extends ViewDefinition3d {
|
|
328
|
-
/** @internal */
|
|
329
318
|
static get className(): string;
|
|
330
319
|
}
|
|
331
320
|
/** An auxiliary coordinate system element. Auxiliary coordinate systems can be used by views to show
|
|
@@ -333,7 +322,6 @@ export declare class TemplateViewDefinition3d extends ViewDefinition3d {
|
|
|
333
322
|
* @public
|
|
334
323
|
*/
|
|
335
324
|
export declare abstract class AuxCoordSystem extends DefinitionElement {
|
|
336
|
-
/** @internal */
|
|
337
325
|
static get className(): string;
|
|
338
326
|
type: number;
|
|
339
327
|
description?: string;
|
|
@@ -343,7 +331,6 @@ export declare abstract class AuxCoordSystem extends DefinitionElement {
|
|
|
343
331
|
* @public
|
|
344
332
|
*/
|
|
345
333
|
export declare class AuxCoordSystem2d extends AuxCoordSystem {
|
|
346
|
-
/** @internal */
|
|
347
334
|
static get className(): string;
|
|
348
335
|
origin?: Point2d;
|
|
349
336
|
angle: number;
|
|
@@ -359,7 +346,6 @@ export declare class AuxCoordSystem2d extends AuxCoordSystem {
|
|
|
359
346
|
* @public
|
|
360
347
|
*/
|
|
361
348
|
export declare class AuxCoordSystem3d extends AuxCoordSystem {
|
|
362
|
-
/** @internal */
|
|
363
349
|
static get className(): string;
|
|
364
350
|
origin?: Point3d;
|
|
365
351
|
yaw: number;
|
|
@@ -377,7 +363,6 @@ export declare class AuxCoordSystem3d extends AuxCoordSystem {
|
|
|
377
363
|
* @public
|
|
378
364
|
*/
|
|
379
365
|
export declare class AuxCoordSystemSpatial extends AuxCoordSystem3d {
|
|
380
|
-
/** @internal */
|
|
381
366
|
static get className(): string;
|
|
382
367
|
/** Create a Code for a AuxCoordSystemSpatial element given a name that is meant to be unique within the scope of the specified DefinitionModel.
|
|
383
368
|
* @param iModel The IModelDb
|
|
@@ -390,7 +375,6 @@ export declare class AuxCoordSystemSpatial extends AuxCoordSystem3d {
|
|
|
390
375
|
* @public
|
|
391
376
|
*/
|
|
392
377
|
export declare class ViewAttachment extends GraphicalElement2d {
|
|
393
|
-
/** @internal */
|
|
394
378
|
static get className(): string;
|
|
395
379
|
view: RelatedElement;
|
|
396
380
|
constructor(props: ViewAttachmentProps, iModel: IModelDb);
|
|
@@ -400,7 +384,6 @@ export declare class ViewAttachment extends GraphicalElement2d {
|
|
|
400
384
|
* @internal
|
|
401
385
|
*/
|
|
402
386
|
export declare class LightLocation extends SpatialLocationElement {
|
|
403
|
-
/** @internal */
|
|
404
387
|
static get className(): string;
|
|
405
388
|
/** Whether this light is currently turned on. */
|
|
406
389
|
enabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewDefinition.d.ts","sourceRoot":"","sources":["../../src/ViewDefinition.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAQ,SAAS,EAAE,UAAU,EAA2B,MAAM,qBAAqB,CAAC;AAC3F,OAAO,EACL,KAAK,EAAY,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAa,QAAQ,EAAE,kBAAkB,EAChH,MAAM,sBAAs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AAS,IAAI,MAAM,CAA+B;IACtE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,EAAG,MAAM,CAAC;IACb,KAAK,EAAG,MAAM,CAAC;IACf,IAAI,EAAG,MAAM,CAAC;gBACF,KAAK,EAAE,qBAAqB,EAAE,MAAM,EAAE,QAAQ;IAEjE;;;;OAIG;WACW,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;CAIlG;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD,WAA2B,SAAS,IAAI,MAAM,CAAoC;IAClF;;;;OAIG;WACoB,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;CAI3G;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IACpD,WAA2B,SAAS,IAAI,MAAM,CAA6B;IACpE,IAAI,EAAE,cAAc,CAAC;gBACT,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ;cAK5C,mBAAmB,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI;CAI/E;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,sBAAsB;IACvD,WAA2B,SAAS,IAAI,MAAM,CAA4B;IAC1E,iDAAiD;IAC1C,OAAO,EAAG,OAAO,CAAC;IAEzB,SAAS,aAAa,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,QAAQ;CAClE"}
|
|
@@ -19,7 +19,6 @@ const Element_1 = require("./Element");
|
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
21
|
class ModelSelector extends Element_1.DefinitionElement {
|
|
22
|
-
/** @internal */
|
|
23
22
|
static get className() { return "ModelSelector"; }
|
|
24
23
|
constructor(props, iModel) {
|
|
25
24
|
super(props, iModel);
|
|
@@ -83,7 +82,6 @@ exports.ModelSelector = ModelSelector;
|
|
|
83
82
|
* @public
|
|
84
83
|
*/
|
|
85
84
|
class CategorySelector extends Element_1.DefinitionElement {
|
|
86
|
-
/** @internal */
|
|
87
85
|
static get className() { return "CategorySelector"; }
|
|
88
86
|
constructor(props, iModel) {
|
|
89
87
|
super(props, iModel);
|
|
@@ -149,7 +147,6 @@ exports.CategorySelector = CategorySelector;
|
|
|
149
147
|
* @public
|
|
150
148
|
*/
|
|
151
149
|
class ViewDefinition extends (_b = Element_1.DefinitionElement) {
|
|
152
|
-
/** @internal */
|
|
153
150
|
static get className() { return "ViewDefinition"; }
|
|
154
151
|
constructor(props, iModel) {
|
|
155
152
|
super(props, iModel);
|
|
@@ -175,7 +172,7 @@ class ViewDefinition extends (_b = Element_1.DefinitionElement) {
|
|
|
175
172
|
referenceIds.addElement(acsId);
|
|
176
173
|
}
|
|
177
174
|
}
|
|
178
|
-
/** @
|
|
175
|
+
/** @beta */
|
|
179
176
|
static onCloned(context, sourceElementProps, targetElementProps) {
|
|
180
177
|
super.onCloned(context, sourceElementProps, targetElementProps);
|
|
181
178
|
if (context.isBetweenIModels && targetElementProps.jsonProperties && targetElementProps.jsonProperties.viewDetails) {
|
|
@@ -231,7 +228,6 @@ ViewDefinition.requiredReferenceKeyTypeMap = {
|
|
|
231
228
|
* @public
|
|
232
229
|
*/
|
|
233
230
|
class ViewDefinition3d extends ViewDefinition {
|
|
234
|
-
/** @internal */
|
|
235
231
|
static get className() { return "ViewDefinition3d"; }
|
|
236
232
|
constructor(props, iModel) {
|
|
237
233
|
super(props, iModel);
|
|
@@ -270,7 +266,6 @@ exports.ViewDefinition3d = ViewDefinition3d;
|
|
|
270
266
|
* @public
|
|
271
267
|
*/
|
|
272
268
|
class SpatialViewDefinition extends (_d = ViewDefinition3d) {
|
|
273
|
-
/** @internal */
|
|
274
269
|
static get className() { return "SpatialViewDefinition"; }
|
|
275
270
|
constructor(props, iModel) {
|
|
276
271
|
super(props, iModel);
|
|
@@ -356,7 +351,6 @@ SpatialViewDefinition.requiredReferenceKeyTypeMap = {
|
|
|
356
351
|
* @public
|
|
357
352
|
*/
|
|
358
353
|
class OrthographicViewDefinition extends SpatialViewDefinition {
|
|
359
|
-
/** @internal */
|
|
360
354
|
static get className() { return "OrthographicViewDefinition"; }
|
|
361
355
|
constructor(props, iModel) { super(props, iModel); }
|
|
362
356
|
/**
|
|
@@ -423,7 +417,6 @@ exports.OrthographicViewDefinition = OrthographicViewDefinition;
|
|
|
423
417
|
* @public
|
|
424
418
|
*/
|
|
425
419
|
class ViewDefinition2d extends ViewDefinition {
|
|
426
|
-
/** @internal */
|
|
427
420
|
static get className() { return "ViewDefinition2d"; }
|
|
428
421
|
constructor(props, iModel) {
|
|
429
422
|
super(props, iModel);
|
|
@@ -455,7 +448,6 @@ exports.ViewDefinition2d = ViewDefinition2d;
|
|
|
455
448
|
* @public
|
|
456
449
|
*/
|
|
457
450
|
class DrawingViewDefinition extends ViewDefinition2d {
|
|
458
|
-
/** @internal */
|
|
459
451
|
static get className() { return "DrawingViewDefinition"; }
|
|
460
452
|
constructor(props, iModel) {
|
|
461
453
|
super(props, iModel);
|
|
@@ -508,7 +500,6 @@ exports.DrawingViewDefinition = DrawingViewDefinition;
|
|
|
508
500
|
* @public
|
|
509
501
|
*/
|
|
510
502
|
class SheetViewDefinition extends ViewDefinition2d {
|
|
511
|
-
/** @internal */
|
|
512
503
|
static get className() { return "SheetViewDefinition"; }
|
|
513
504
|
}
|
|
514
505
|
exports.SheetViewDefinition = SheetViewDefinition;
|
|
@@ -516,7 +507,6 @@ exports.SheetViewDefinition = SheetViewDefinition;
|
|
|
516
507
|
* @internal
|
|
517
508
|
*/
|
|
518
509
|
class TemplateViewDefinition2d extends ViewDefinition2d {
|
|
519
|
-
/** @internal */
|
|
520
510
|
static get className() { return "TemplateViewDefinition2d"; }
|
|
521
511
|
}
|
|
522
512
|
exports.TemplateViewDefinition2d = TemplateViewDefinition2d;
|
|
@@ -524,7 +514,6 @@ exports.TemplateViewDefinition2d = TemplateViewDefinition2d;
|
|
|
524
514
|
* @internal
|
|
525
515
|
*/
|
|
526
516
|
class TemplateViewDefinition3d extends ViewDefinition3d {
|
|
527
|
-
/** @internal */
|
|
528
517
|
static get className() { return "TemplateViewDefinition3d"; }
|
|
529
518
|
}
|
|
530
519
|
exports.TemplateViewDefinition3d = TemplateViewDefinition3d;
|
|
@@ -533,7 +522,6 @@ exports.TemplateViewDefinition3d = TemplateViewDefinition3d;
|
|
|
533
522
|
* @public
|
|
534
523
|
*/
|
|
535
524
|
class AuxCoordSystem extends Element_1.DefinitionElement {
|
|
536
|
-
/** @internal */
|
|
537
525
|
static get className() { return "AuxCoordSystem"; }
|
|
538
526
|
constructor(props, iModel) { super(props, iModel); }
|
|
539
527
|
}
|
|
@@ -542,7 +530,6 @@ exports.AuxCoordSystem = AuxCoordSystem;
|
|
|
542
530
|
* @public
|
|
543
531
|
*/
|
|
544
532
|
class AuxCoordSystem2d extends AuxCoordSystem {
|
|
545
|
-
/** @internal */
|
|
546
533
|
static get className() { return "AuxCoordSystem2d"; }
|
|
547
534
|
constructor(props, iModel) { super(props, iModel); }
|
|
548
535
|
/** Create a Code for a AuxCoordSystem2d element given a name that is meant to be unique within the scope of the specified DefinitionModel.
|
|
@@ -560,7 +547,6 @@ exports.AuxCoordSystem2d = AuxCoordSystem2d;
|
|
|
560
547
|
* @public
|
|
561
548
|
*/
|
|
562
549
|
class AuxCoordSystem3d extends AuxCoordSystem {
|
|
563
|
-
/** @internal */
|
|
564
550
|
static get className() { return "AuxCoordSystem3d"; }
|
|
565
551
|
constructor(props, iModel) { super(props, iModel); }
|
|
566
552
|
/** Create a Code for a AuxCoordSystem3d element given a name that is meant to be unique within the scope of the specified DefinitionModel.
|
|
@@ -578,7 +564,6 @@ exports.AuxCoordSystem3d = AuxCoordSystem3d;
|
|
|
578
564
|
* @public
|
|
579
565
|
*/
|
|
580
566
|
class AuxCoordSystemSpatial extends AuxCoordSystem3d {
|
|
581
|
-
/** @internal */
|
|
582
567
|
static get className() { return "AuxCoordSystemSpatial"; }
|
|
583
568
|
/** Create a Code for a AuxCoordSystemSpatial element given a name that is meant to be unique within the scope of the specified DefinitionModel.
|
|
584
569
|
* @param iModel The IModelDb
|
|
@@ -595,7 +580,6 @@ exports.AuxCoordSystemSpatial = AuxCoordSystemSpatial;
|
|
|
595
580
|
* @public
|
|
596
581
|
*/
|
|
597
582
|
class ViewAttachment extends Element_1.GraphicalElement2d {
|
|
598
|
-
/** @internal */
|
|
599
583
|
static get className() { return "ViewAttachment"; }
|
|
600
584
|
constructor(props, iModel) {
|
|
601
585
|
super(props, iModel);
|
|
@@ -612,7 +596,6 @@ exports.ViewAttachment = ViewAttachment;
|
|
|
612
596
|
* @internal
|
|
613
597
|
*/
|
|
614
598
|
class LightLocation extends Element_1.SpatialLocationElement {
|
|
615
|
-
/** @internal */
|
|
616
599
|
static get className() { return "LightLocation"; }
|
|
617
600
|
constructor(props, iModel) { super(props, iModel); }
|
|
618
601
|
}
|