@itwin/imodel-transformer 2.0.0-dev.5 → 2.0.0-dev.51
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/README.md +13 -27
- package/lib/cjs/Algo.js.map +1 -1
- package/lib/cjs/BigMap.d.ts.map +1 -1
- package/lib/cjs/BigMap.js.map +1 -1
- package/lib/cjs/BranchProvenanceInitializer.d.ts.map +1 -1
- package/lib/cjs/BranchProvenanceInitializer.js +34 -36
- package/lib/cjs/BranchProvenanceInitializer.js.map +1 -1
- package/lib/cjs/ChangesetScanner.d.ts +60 -0
- package/lib/cjs/ChangesetScanner.d.ts.map +1 -0
- package/lib/cjs/ChangesetScanner.js +101 -0
- package/lib/cjs/ChangesetScanner.js.map +1 -0
- package/lib/cjs/ECReferenceTypesCache.d.ts +0 -3
- package/lib/cjs/ECReferenceTypesCache.d.ts.map +1 -1
- package/lib/cjs/ECReferenceTypesCache.js +61 -103
- package/lib/cjs/ECReferenceTypesCache.js.map +1 -1
- package/lib/cjs/ECSqlReaderAsyncIterableIteratorAdapter.d.ts.map +1 -1
- package/lib/cjs/ECSqlReaderAsyncIterableIteratorAdapter.js.map +1 -1
- package/lib/cjs/ElementAspectCleanup.d.ts +16 -0
- package/lib/cjs/ElementAspectCleanup.d.ts.map +1 -0
- package/lib/cjs/ElementAspectCleanup.js +82 -0
- package/lib/cjs/ElementAspectCleanup.js.map +1 -0
- package/lib/cjs/ElementAspectExportCoordinator.d.ts +44 -0
- package/lib/cjs/ElementAspectExportCoordinator.d.ts.map +1 -0
- package/lib/cjs/ElementAspectExportCoordinator.js +148 -0
- package/lib/cjs/ElementAspectExportCoordinator.js.map +1 -0
- package/lib/cjs/ElementAspectExportProcessor.d.ts +43 -0
- package/lib/cjs/ElementAspectExportProcessor.d.ts.map +1 -0
- package/lib/cjs/ElementAspectExportProcessor.js +167 -0
- package/lib/cjs/ElementAspectExportProcessor.js.map +1 -0
- package/lib/cjs/ElementBulkDelete.d.ts +11 -0
- package/lib/cjs/ElementBulkDelete.d.ts.map +1 -0
- package/lib/cjs/ElementBulkDelete.js +55 -0
- package/lib/cjs/ElementBulkDelete.js.map +1 -0
- package/lib/cjs/EntityExistenceCache.d.ts +43 -0
- package/lib/cjs/EntityExistenceCache.d.ts.map +1 -0
- package/lib/cjs/EntityExistenceCache.js +91 -0
- package/lib/cjs/EntityExistenceCache.js.map +1 -0
- package/lib/cjs/EntityMap.d.ts.map +1 -1
- package/lib/cjs/EntityMap.js.map +1 -1
- package/lib/cjs/EntityUnifier.d.ts +8 -8
- package/lib/cjs/EntityUnifier.d.ts.map +1 -1
- package/lib/cjs/EntityUnifier.js +55 -32
- package/lib/cjs/EntityUnifier.js.map +1 -1
- package/lib/cjs/IModelCloneContext.d.ts +11 -5
- package/lib/cjs/IModelCloneContext.d.ts.map +1 -1
- package/lib/cjs/IModelCloneContext.js +94 -58
- package/lib/cjs/IModelCloneContext.js.map +1 -1
- package/lib/cjs/IModelExporter.d.ts +109 -35
- package/lib/cjs/IModelExporter.d.ts.map +1 -1
- package/lib/cjs/IModelExporter.js +698 -224
- package/lib/cjs/IModelExporter.js.map +1 -1
- package/lib/cjs/IModelImporter.d.ts +73 -32
- package/lib/cjs/IModelImporter.d.ts.map +1 -1
- package/lib/cjs/IModelImporter.js +278 -144
- package/lib/cjs/IModelImporter.js.map +1 -1
- package/lib/cjs/IModelTransformContext.d.ts +54 -0
- package/lib/cjs/IModelTransformContext.d.ts.map +1 -0
- package/lib/cjs/IModelTransformContext.js +3 -0
- package/lib/cjs/IModelTransformContext.js.map +1 -0
- package/lib/cjs/IModelTransformer.d.ts +126 -206
- package/lib/cjs/IModelTransformer.d.ts.map +1 -1
- package/lib/cjs/IModelTransformer.js +652 -1198
- package/lib/cjs/IModelTransformer.js.map +1 -1
- package/lib/cjs/IModelTransformerError.d.ts +84 -0
- package/lib/cjs/IModelTransformerError.d.ts.map +1 -0
- package/lib/cjs/IModelTransformerError.js +93 -0
- package/lib/cjs/IModelTransformerError.js.map +1 -0
- package/lib/cjs/ProvenanceManager.d.ts +182 -0
- package/lib/cjs/ProvenanceManager.d.ts.map +1 -0
- package/lib/cjs/ProvenanceManager.js +743 -0
- package/lib/cjs/ProvenanceManager.js.map +1 -0
- package/lib/cjs/SyncTypeResolver.d.ts +34 -0
- package/lib/cjs/SyncTypeResolver.d.ts.map +1 -0
- package/lib/cjs/SyncTypeResolver.js +98 -0
- package/lib/cjs/SyncTypeResolver.js.map +1 -0
- package/lib/cjs/TransformerLoggerCategory.d.ts +1 -1
- package/lib/cjs/TransformerLoggerCategory.js +1 -1
- package/lib/cjs/TransformerLoggerCategory.js.map +1 -1
- package/lib/cjs/TransformerPackageMetadata.d.ts +8 -0
- package/lib/cjs/TransformerPackageMetadata.d.ts.map +1 -0
- package/lib/cjs/TransformerPackageMetadata.js +47 -0
- package/lib/cjs/TransformerPackageMetadata.js.map +1 -0
- package/lib/cjs/imodel-transformer.d.ts +19 -0
- package/lib/cjs/imodel-transformer.d.ts.map +1 -1
- package/lib/cjs/imodel-transformer.js +53 -34
- package/lib/cjs/imodel-transformer.js.map +1 -1
- package/lib/cjs/schema-processing/DynamicSchemaUnionStrategy.d.ts +29 -0
- package/lib/cjs/schema-processing/DynamicSchemaUnionStrategy.d.ts.map +1 -0
- package/lib/cjs/schema-processing/DynamicSchemaUnionStrategy.js +212 -0
- package/lib/cjs/schema-processing/DynamicSchemaUnionStrategy.js.map +1 -0
- package/lib/cjs/schema-processing/SchemaProcessingCoordinator.d.ts +25 -0
- package/lib/cjs/schema-processing/SchemaProcessingCoordinator.d.ts.map +1 -0
- package/lib/cjs/schema-processing/SchemaProcessingCoordinator.js +196 -0
- package/lib/cjs/schema-processing/SchemaProcessingCoordinator.js.map +1 -0
- package/lib/cjs/schema-processing/SchemaProcessingStrategy.d.ts +59 -0
- package/lib/cjs/schema-processing/SchemaProcessingStrategy.d.ts.map +1 -0
- package/lib/cjs/schema-processing/SchemaProcessingStrategy.js +28 -0
- package/lib/cjs/schema-processing/SchemaProcessingStrategy.js.map +1 -0
- package/lib/cjs/schema-processing.d.ts +7 -0
- package/lib/cjs/schema-processing.d.ts.map +1 -0
- package/lib/cjs/schema-processing.js +27 -0
- package/lib/cjs/schema-processing.js.map +1 -0
- package/package.json +65 -43
- package/lib/cjs/DetachedExportElementAspectsStrategy.d.ts +0 -16
- package/lib/cjs/DetachedExportElementAspectsStrategy.d.ts.map +0 -1
- package/lib/cjs/DetachedExportElementAspectsStrategy.js +0 -106
- package/lib/cjs/DetachedExportElementAspectsStrategy.js.map +0 -1
- package/lib/cjs/ElementCascadingDeleter.d.ts +0 -22
- package/lib/cjs/ElementCascadingDeleter.d.ts.map +0 -1
- package/lib/cjs/ElementCascadingDeleter.js +0 -57
- package/lib/cjs/ElementCascadingDeleter.js.map +0 -1
- package/lib/cjs/ExportElementAspectsStrategy.d.ts +0 -35
- package/lib/cjs/ExportElementAspectsStrategy.d.ts.map +0 -1
- package/lib/cjs/ExportElementAspectsStrategy.js +0 -52
- package/lib/cjs/ExportElementAspectsStrategy.js.map +0 -1
- package/lib/cjs/ExportElementAspectsWithElementsStrategy.d.ts +0 -12
- package/lib/cjs/ExportElementAspectsWithElementsStrategy.d.ts.map +0 -1
- package/lib/cjs/ExportElementAspectsWithElementsStrategy.js +0 -47
- package/lib/cjs/ExportElementAspectsWithElementsStrategy.js.map +0 -1
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module iModels
|
|
3
3
|
*/
|
|
4
|
-
import { Id64String } from "@itwin/core-bentley";
|
|
4
|
+
import { DbResult, Id64String, ITwinError } from "@itwin/core-bentley";
|
|
5
5
|
import { ElementAspectProps, ElementProps, EntityProps, ModelProps } from "@itwin/core-common";
|
|
6
|
-
import { ElementAspect, ElementMultiAspect, Entity, IModelDb, RelationshipProps } from "@itwin/core-backend";
|
|
6
|
+
import { BulkDeleteElementsStatus, EditTxn, ElementAspect, ElementMultiAspect, Entity, IModelDb, RelationshipProps } from "@itwin/core-backend";
|
|
7
7
|
import type { RelationshipPropsForDelete } from "./IModelTransformer";
|
|
8
|
+
import { ElementAspectCleanup } from "./ElementAspectCleanup";
|
|
9
|
+
import { EntityExistenceCache } from "./EntityExistenceCache";
|
|
10
|
+
/** Error thrown when native bulk deletion fails to delete one or more requested element trees.
|
|
11
|
+
* @beta
|
|
12
|
+
*/
|
|
13
|
+
export interface ElementBulkDeleteError extends ITwinError {
|
|
14
|
+
/** Status returned by the native bulk-delete operation. */
|
|
15
|
+
readonly status: BulkDeleteElementsStatus;
|
|
16
|
+
/** SQLite status returned by the native delete statement. */
|
|
17
|
+
readonly sqlDeleteStatus: DbResult;
|
|
18
|
+
/** Target roots that the native operation did not delete. */
|
|
19
|
+
readonly failedIds: ReadonlySet<Id64String>;
|
|
20
|
+
}
|
|
8
21
|
/** Options provided to [[IModelImporter.optimizeGeometry]] specifying post-processing optimizations to be applied to the iModel's geometry.
|
|
9
22
|
* @beta
|
|
10
23
|
*/
|
|
@@ -48,6 +61,19 @@ export interface IModelImportOptions {
|
|
|
48
61
|
export declare class IModelImporter {
|
|
49
62
|
/** The read/write target iModel. */
|
|
50
63
|
readonly targetDb: IModelDb;
|
|
64
|
+
/** The [[EditTxn]] used for write operations on the target iModel.
|
|
65
|
+
* @beta
|
|
66
|
+
*/
|
|
67
|
+
protected readonly _editTxn: EditTxn;
|
|
68
|
+
/** The [[EditTxn]] used for write operations on the target iModel.
|
|
69
|
+
* @beta
|
|
70
|
+
*/
|
|
71
|
+
get editTxn(): EditTxn;
|
|
72
|
+
private readonly _elementAspectCleanup;
|
|
73
|
+
/** Deletes replaceable ElementAspects through this importer's customized deletion callback.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
get elementAspectCleanup(): ElementAspectCleanup;
|
|
51
77
|
/** resolved initialization options for the importer
|
|
52
78
|
* @beta
|
|
53
79
|
*/
|
|
@@ -61,6 +87,7 @@ export declare class IModelImporter {
|
|
|
61
87
|
* To resolve code values to their intended values call [[IModelImporter.resolveDuplicateCodeValues]].
|
|
62
88
|
*/
|
|
63
89
|
private _duplicateCodeValueMap;
|
|
90
|
+
private readonly _entityExistenceCaches;
|
|
64
91
|
/**
|
|
65
92
|
* A set of elementIds that the transformer adds to while exporting elements to indicate that the element already exists in the target.
|
|
66
93
|
* Defaults to an empty set.
|
|
@@ -74,9 +101,10 @@ export declare class IModelImporter {
|
|
|
74
101
|
* @note This set should stay small, as right after the transformer pushes to it, the importer will remove from the set.
|
|
75
102
|
*/
|
|
76
103
|
private _elementsToUpdateDuringPreserveIds;
|
|
77
|
-
/** The set of elements that
|
|
78
|
-
* Defaults to an empty set.
|
|
104
|
+
/** The set of target elements that this importer must not directly update or request for deletion.
|
|
105
|
+
* Defaults to an empty set and is populated by consumers or custom transformers.
|
|
79
106
|
* @note Adding an element to this set is typically necessary when remapping a source element to one that already exists in the target and already has the desired properties.
|
|
107
|
+
* @note Deletion protection applies only when the exact element ID is passed to [[deleteElement]] or [[deleteElements]]. It does not protect the element from deletion through a parent, containing model, or other cascading dependency. Consumers that need to preserve such an element must also add every requested deletion root whose cascade would delete it.
|
|
80
108
|
*/
|
|
81
109
|
readonly doNotUpdateElementIds: Set<string>;
|
|
82
110
|
/** This set is ONLY used for elements that are always present even in an "empty" iModel. We will use this set to filter out changes to root elements if [[IModelTransformOptions.skipPropagateChangesToRootElements]] is false. */
|
|
@@ -88,10 +116,18 @@ export declare class IModelImporter {
|
|
|
88
116
|
/** */
|
|
89
117
|
private _modelPropertiesToIgnore;
|
|
90
118
|
/** Construct a new IModelImporter
|
|
91
|
-
* @param
|
|
119
|
+
* @param editTxn The [[EditTxn]] to use for write operations on the target iModel. The target db is derived from `editTxn.iModel`.
|
|
92
120
|
* @param options The options that specify how the import should be done.
|
|
93
121
|
*/
|
|
94
|
-
constructor(
|
|
122
|
+
constructor(editTxn: EditTxn, options?: IModelImportOptions);
|
|
123
|
+
/** Register a transformation-scoped existence cache for delete invalidation.
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
registerEntityExistenceCache(cache: EntityExistenceCache): void;
|
|
127
|
+
/** Stop invalidating a transformation-scoped existence cache.
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
130
|
+
unregisterEntityExistenceCache(cache: EntityExistenceCache): void;
|
|
95
131
|
/**
|
|
96
132
|
* Checks [[IModelImportOptions.skipPropagateChangesToRootElements]], [[IModelImporter.rootElementIds]], and [[IModelImporter.doNotUpdateElementIds]] and returns true for 'do not update', false for do 'update'.
|
|
97
133
|
*/
|
|
@@ -101,15 +137,15 @@ export declare class IModelImporter {
|
|
|
101
137
|
*/
|
|
102
138
|
markElementToUpdateDuringPreserveIds(elementId: Id64String): void;
|
|
103
139
|
/** Import the specified ModelProps (either as an insert or an update) into the target iModel. */
|
|
104
|
-
importModel(modelProps: ModelProps): void
|
|
140
|
+
importModel(modelProps: ModelProps): Promise<void>;
|
|
105
141
|
/** Create a new Model from the specified ModelProps and insert it into the target iModel.
|
|
106
142
|
* @note A subclass may override this method to customize insert behavior but should call `super.onInsertModel`.
|
|
107
143
|
*/
|
|
108
|
-
protected onInsertModel(modelProps: ModelProps): Id64String
|
|
144
|
+
protected onInsertModel(modelProps: ModelProps): Promise<Id64String>;
|
|
109
145
|
/** Update an existing Model in the target iModel from the specified ModelProps.
|
|
110
146
|
* @note A subclass may override this method to customize update behavior but should call `super.onUpdateModel`.
|
|
111
147
|
*/
|
|
112
|
-
protected onUpdateModel(modelProps: ModelProps): void
|
|
148
|
+
protected onUpdateModel(modelProps: ModelProps): Promise<void>;
|
|
113
149
|
/** Format a Model for the Logger. */
|
|
114
150
|
private formatModelForLogger;
|
|
115
151
|
/**
|
|
@@ -118,33 +154,37 @@ export declare class IModelImporter {
|
|
|
118
154
|
*/
|
|
119
155
|
private tryUpdateElement;
|
|
120
156
|
/** Import the specified ElementProps (either as an insert or an update) into the target iModel. */
|
|
121
|
-
importElement(elementProps: ElementProps): Id64String
|
|
157
|
+
importElement(elementProps: ElementProps): Promise<Id64String>;
|
|
122
158
|
/** Create a new Element from the specified ElementProps and insert it into the target iModel.
|
|
123
159
|
* @returns The Id of the newly inserted Element.
|
|
124
160
|
* @note A subclass may override this method to customize insert behavior but should call `super.onInsertElement`.
|
|
125
161
|
*/
|
|
126
|
-
protected onInsertElement(elementProps: ElementProps): Id64String
|
|
162
|
+
protected onInsertElement(elementProps: ElementProps): Promise<Id64String>;
|
|
127
163
|
/** Update an existing Element in the target iModel from the specified ElementProps.
|
|
128
164
|
* @note A subclass may override this method to customize update behavior but should call `super.onUpdateElement`.
|
|
129
165
|
*/
|
|
130
|
-
protected onUpdateElement(elementProps: ElementProps): void
|
|
131
|
-
/**
|
|
132
|
-
|
|
133
|
-
|
|
166
|
+
protected onUpdateElement(elementProps: ElementProps): Promise<void>;
|
|
167
|
+
/** Deletes one target element tree through [[deleteElements]]. */
|
|
168
|
+
deleteElement(elementId: Id64String): Promise<void>;
|
|
169
|
+
/** Adds roots required by code-scope dependencies, then deletes the target element trees in one native operation.
|
|
170
|
+
* @note An override must call `super.onDeleteElements` once to perform the deletion.
|
|
171
|
+
*/
|
|
172
|
+
protected onDeleteElements(elementIds: ReadonlySet<Id64String>): Promise<void>;
|
|
173
|
+
/** Deletes target element trees in one native operation.
|
|
174
|
+
* Requested roots in [[doNotUpdateElementIds]] are skipped. This does not prevent an element in that set from being deleted as part of another root's cascade.
|
|
175
|
+
* @throws [[ElementBulkDeleteError]] if native deletion fails for any root. A partial failure leaves successful deletions pending in the caller-owned transaction. Abandon the transaction before retrying.
|
|
134
176
|
*/
|
|
135
|
-
|
|
136
|
-
/** Delete the specified Element from the target iModel. */
|
|
137
|
-
deleteElement(elementId: Id64String): void;
|
|
177
|
+
deleteElements(elementIds: ReadonlySet<Id64String>): Promise<void>;
|
|
138
178
|
/** Delete the specified Model from the target iModel.
|
|
139
179
|
* @note A subclass may override this method to customize delete behavior but should call `super.onDeleteModel`.
|
|
140
180
|
*/
|
|
141
|
-
protected onDeleteModel(modelId: Id64String): void
|
|
181
|
+
protected onDeleteModel(modelId: Id64String): Promise<void>;
|
|
142
182
|
/** Delete the specified Model from the target iModel. */
|
|
143
|
-
deleteModel(modelId: Id64String): void
|
|
183
|
+
deleteModel(modelId: Id64String): Promise<void>;
|
|
144
184
|
/** Format an Element for the Logger. */
|
|
145
185
|
private formatElementForLogger;
|
|
146
186
|
/** Import an ElementUniqueAspect into the target iModel. */
|
|
147
|
-
importElementUniqueAspect(aspectProps: ElementAspectProps): Id64String
|
|
187
|
+
importElementUniqueAspect(aspectProps: ElementAspectProps): Promise<Id64String>;
|
|
148
188
|
/** Import the collection of ElementMultiAspects into the target iModel.
|
|
149
189
|
* @param aspectPropsArray The ElementMultiAspects to import
|
|
150
190
|
* @param filterFunc Optional filter func that is used to exclude target ElementMultiAspects that were added during iModel transformation from the update detection logic.
|
|
@@ -153,38 +193,38 @@ export declare class IModelImporter {
|
|
|
153
193
|
*/
|
|
154
194
|
importElementMultiAspects(aspectPropsArray: ElementAspectProps[],
|
|
155
195
|
/** caller must use this to enforce any aspects added by IModelTransformer are not considered for update */
|
|
156
|
-
filterFunc?: (a: ElementMultiAspect) => boolean): Id64String[]
|
|
196
|
+
filterFunc?: (a: ElementMultiAspect) => boolean): Promise<Id64String[]>;
|
|
157
197
|
/** Insert the ElementAspect into the target iModel.
|
|
158
198
|
* @note A subclass may override this method to customize insert behavior but should call `super.onInsertElementAspect`.
|
|
159
199
|
*/
|
|
160
|
-
protected onInsertElementAspect(aspectProps: ElementAspectProps): Id64String
|
|
200
|
+
protected onInsertElementAspect(aspectProps: ElementAspectProps): Promise<Id64String>;
|
|
161
201
|
/** Update the ElementAspect within the target iModel.
|
|
162
202
|
* @note A subclass may override this method to customize update behavior but should call `super.onUpdateElementAspect`.
|
|
163
203
|
*/
|
|
164
|
-
protected onUpdateElementAspect(aspectProps: ElementAspectProps): void
|
|
204
|
+
protected onUpdateElementAspect(aspectProps: ElementAspectProps): Promise<void>;
|
|
165
205
|
/** Delete the specified ElementAspect from the target iModel.
|
|
166
206
|
* @note A subclass may override this method to customize delete behavior but should call `super.onDeleteElementAspect`.
|
|
167
207
|
*/
|
|
168
|
-
protected onDeleteElementAspect(targetElementAspect: ElementAspect): void
|
|
208
|
+
protected onDeleteElementAspect(targetElementAspect: ElementAspect): Promise<void>;
|
|
169
209
|
/** Format an ElementAspect for the Logger. */
|
|
170
210
|
private formatElementAspectForLogger;
|
|
171
211
|
/** Import the specified RelationshipProps (either as an insert or an update) into the target iModel.
|
|
172
212
|
* @returns The instance Id of the inserted or updated Relationship.
|
|
173
213
|
*/
|
|
174
|
-
importRelationship(relationshipProps: RelationshipProps): Id64String
|
|
214
|
+
importRelationship(relationshipProps: RelationshipProps): Promise<Id64String>;
|
|
175
215
|
/** Create a new Relationship from the specified RelationshipProps and insert it into the target iModel.
|
|
176
216
|
* @returns The instance Id of the newly inserted relationship.
|
|
177
217
|
* @note A subclass may override this method to customize insert behavior but should call `super.onInsertRelationship`.
|
|
178
218
|
*/
|
|
179
|
-
protected onInsertRelationship(relationshipProps: RelationshipProps): Id64String
|
|
219
|
+
protected onInsertRelationship(relationshipProps: RelationshipProps): Promise<Id64String>;
|
|
180
220
|
/** Update an existing Relationship in the target iModel from the specified RelationshipProps.
|
|
181
221
|
* @note A subclass may override this method to customize update behavior but should call `super.onUpdateRelationship`.
|
|
182
222
|
*/
|
|
183
|
-
protected onUpdateRelationship(relationshipProps: RelationshipProps): void
|
|
223
|
+
protected onUpdateRelationship(relationshipProps: RelationshipProps): Promise<void>;
|
|
184
224
|
/** Delete the specified Relationship from the target iModel. */
|
|
185
|
-
protected onDeleteRelationship(relationshipProps: RelationshipPropsForDelete): void
|
|
225
|
+
protected onDeleteRelationship(relationshipProps: RelationshipPropsForDelete): Promise<void>;
|
|
186
226
|
/** Delete the specified Relationship from the target iModel. */
|
|
187
|
-
deleteRelationship(relationshipProps: RelationshipPropsForDelete): void
|
|
227
|
+
deleteRelationship(relationshipProps: RelationshipPropsForDelete): Promise<void>;
|
|
188
228
|
/** Format a Relationship for the Logger. */
|
|
189
229
|
private formatRelationshipForLogger;
|
|
190
230
|
/** Tracks incremental progress */
|
|
@@ -192,7 +232,7 @@ export declare class IModelImporter {
|
|
|
192
232
|
/** This method is called when IModelImporter has made incremental progress based on the [[progressInterval]] setting.
|
|
193
233
|
* @note A subclass may override this method to report custom progress but should call `super.onProgress`.
|
|
194
234
|
*/
|
|
195
|
-
protected onProgress(): void
|
|
235
|
+
protected onProgress(): Promise<void>;
|
|
196
236
|
/** Optionally compute the projectExtents for the target iModel depending on the options for this IModelImporter.
|
|
197
237
|
* @note This method is automatically called from [IModelTransformer.process]($transformer).
|
|
198
238
|
* @see [IModelDb.computeProjectExtents]($backend), [[autoExtendProjectExtents]]
|
|
@@ -208,7 +248,8 @@ export declare class IModelImporter {
|
|
|
208
248
|
* Needs to be called to perform necessary cleanup operations.
|
|
209
249
|
* By not calling `finalize` there is a risk that data imported into targetDb will not be as expected.
|
|
210
250
|
*
|
|
211
|
-
* @note
|
|
251
|
+
* @note [[IModelTransformer.process]] invokes this method automatically. Call it explicitly after
|
|
252
|
+
* composing the transformer's lower-level subset processing methods.
|
|
212
253
|
*/
|
|
213
254
|
finalize(): void;
|
|
214
255
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IModelImporter.d.ts","sourceRoot":"","sources":["../../src/IModelImporter.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"IModelImporter.d.ts","sourceRoot":"","sources":["../../src/IModelImporter.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EACL,QAAQ,EAGR,UAAU,EAEV,UAAU,EAEX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAIL,kBAAkB,EAClB,YAAY,EACZ,WAAW,EAGX,UAAU,EAGX,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,wBAAwB,EACxB,OAAO,EACP,aAAa,EACb,kBAAkB,EA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