@itwin/imodel-transformer 2.0.0-dev.4 → 2.0.0-dev.41
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 +12 -26
- package/lib/cjs/BranchProvenanceInitializer.d.ts.map +1 -1
- package/lib/cjs/BranchProvenanceInitializer.js +35 -30
- 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/ElementAspectCleanup.d.ts +16 -0
- package/lib/cjs/ElementAspectCleanup.d.ts.map +1 -0
- package/lib/cjs/ElementAspectCleanup.js +83 -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 +55 -0
- package/lib/cjs/ElementAspectExportProcessor.d.ts.map +1 -0
- package/lib/cjs/ElementAspectExportProcessor.js +186 -0
- package/lib/cjs/ElementAspectExportProcessor.js.map +1 -0
- package/lib/cjs/ElementCascadingDeleter.d.ts +3 -3
- package/lib/cjs/ElementCascadingDeleter.d.ts.map +1 -1
- package/lib/cjs/ElementCascadingDeleter.js +12 -12
- package/lib/cjs/ElementCascadingDeleter.js.map +1 -1
- package/lib/cjs/EntityUnifier.d.ts +4 -8
- package/lib/cjs/EntityUnifier.d.ts.map +1 -1
- package/lib/cjs/EntityUnifier.js +6 -24
- package/lib/cjs/EntityUnifier.js.map +1 -1
- package/lib/cjs/IModelCloneContext.d.ts +6 -5
- package/lib/cjs/IModelCloneContext.d.ts.map +1 -1
- package/lib/cjs/IModelCloneContext.js +74 -57
- package/lib/cjs/IModelCloneContext.js.map +1 -1
- package/lib/cjs/IModelExporter.d.ts +80 -32
- package/lib/cjs/IModelExporter.d.ts.map +1 -1
- package/lib/cjs/IModelExporter.js +563 -188
- package/lib/cjs/IModelExporter.js.map +1 -1
- package/lib/cjs/IModelImporter.d.ts +38 -24
- package/lib/cjs/IModelImporter.d.ts.map +1 -1
- package/lib/cjs/IModelImporter.js +210 -129
- 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 +101 -189
- package/lib/cjs/IModelTransformer.d.ts.map +1 -1
- package/lib/cjs/IModelTransformer.js +558 -1104
- package/lib/cjs/IModelTransformer.js.map +1 -1
- package/lib/cjs/IModelTransformerError.d.ts +76 -0
- package/lib/cjs/IModelTransformerError.d.ts.map +1 -0
- package/lib/cjs/IModelTransformerError.js +85 -0
- package/lib/cjs/IModelTransformerError.js.map +1 -0
- package/lib/cjs/ProvenanceManager.d.ts +170 -0
- package/lib/cjs/ProvenanceManager.d.ts.map +1 -0
- package/lib/cjs/ProvenanceManager.js +735 -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 +14 -0
- package/lib/cjs/TransformerPackageMetadata.js.map +1 -0
- package/lib/cjs/imodel-transformer.d.ts +18 -0
- package/lib/cjs/imodel-transformer.d.ts.map +1 -1
- package/lib/cjs/imodel-transformer.js +29 -33
- package/lib/cjs/imodel-transformer.js.map +1 -1
- package/package.json +27 -39
- 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/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,11 +1,21 @@
|
|
|
1
1
|
import { Id64Array, Id64Set, Id64String } from "@itwin/core-bentley";
|
|
2
2
|
import * as ECSchemaMetaData from "@itwin/ecschema-metadata";
|
|
3
3
|
import { Transform } from "@itwin/core-geometry";
|
|
4
|
-
import { Element, ElementAspect, ElementMultiAspect, ElementUniqueAspect, Entity, ExternalSourceAspect, IModelDb, Model, Relationship, RelationshipProps } from "@itwin/core-backend";
|
|
4
|
+
import { EditTxn, Element, ElementAspect, ElementMultiAspect, ElementUniqueAspect, Entity, ExternalSourceAspect, IModelDb, Model, Relationship, RelationshipProps } from "@itwin/core-backend";
|
|
5
5
|
import { ChangesetIndexAndId, CodeSpec, ElementAspectProps, ElementProps, ExternalSourceAspectProps, FontProps, Helmert2DWithZOffset, ModelProps, Placement2d, Placement3d } from "@itwin/core-common";
|
|
6
6
|
import { ChangedInstanceIds, ExportChangesOptions, ExportSchemaResult, IModelExporter, IModelExportHandler } from "./IModelExporter";
|
|
7
7
|
import { IModelImporter, OptimizeGeometryOptions } from "./IModelImporter";
|
|
8
|
-
import {
|
|
8
|
+
import type { IModelTransformContext } from "./IModelTransformContext";
|
|
9
|
+
import { ProvenanceManager } from "./ProvenanceManager";
|
|
10
|
+
/** Required arguments for the [[IModelTransformer]] constructor.
|
|
11
|
+
* @beta
|
|
12
|
+
*/
|
|
13
|
+
export interface IModelTransformArgs {
|
|
14
|
+
/** The source iModel or exporter to read elements from. */
|
|
15
|
+
source: IModelDb | IModelExporter;
|
|
16
|
+
/** The target for the transformation. Pass an [[EditTxn]] to have the transformer create a default [[IModelImporter]], or pass a pre-configured [[IModelImporter]]. */
|
|
17
|
+
target: EditTxn | IModelImporter;
|
|
18
|
+
}
|
|
9
19
|
/** Options provided to the [[IModelTransformer]] constructor.
|
|
10
20
|
* @beta
|
|
11
21
|
* @note if adding an option, you must explicitly add its serialization to [[IModelTransformer.saveStateToFile]]!
|
|
@@ -122,6 +132,13 @@ export interface IModelTransformOptions {
|
|
|
122
132
|
* @default false
|
|
123
133
|
*/
|
|
124
134
|
tryAlignGeolocation?: boolean;
|
|
135
|
+
/** An optional [[EditTxn]] for write operations on the **source** iModel.
|
|
136
|
+
* Only needed for reverse synchronization workflows where provenance must be written back to the source.
|
|
137
|
+
* If not provided, the source iModel is treated as read-only.
|
|
138
|
+
* Must be started before calling [[IModelTransformer.process]].
|
|
139
|
+
* @beta
|
|
140
|
+
*/
|
|
141
|
+
sourceEditTxn?: EditTxn;
|
|
125
142
|
}
|
|
126
143
|
/**
|
|
127
144
|
* Data type for persisting change version information within provenance Scope ExternalSourceAspect.
|
|
@@ -164,7 +181,7 @@ export interface InitOptions {
|
|
|
164
181
|
* @beta
|
|
165
182
|
*/
|
|
166
183
|
export type ProcessChangesOptions = ExportChangesOptions & {
|
|
167
|
-
/** how to
|
|
184
|
+
/** how to save changes on the target. Must call `editTxn.saveChanges()` on the target EditTxn, should not edit the iModel */
|
|
168
185
|
saveTargetChanges?: (transformer: IModelTransformer) => Promise<void>;
|
|
169
186
|
/**
|
|
170
187
|
* The forward sync 'version' to set on the scoping ESA @see ExternalSourceAspectProps upon startup, if the version property on the scoping ESA is undefined or empty string.
|
|
@@ -210,8 +227,10 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
210
227
|
readonly sourceDb: IModelDb;
|
|
211
228
|
/** The read/write target iModel. */
|
|
212
229
|
readonly targetDb: IModelDb;
|
|
213
|
-
/** The
|
|
214
|
-
|
|
230
|
+
/** The supported transformation context for this transformer. */
|
|
231
|
+
get context(): IModelTransformContext;
|
|
232
|
+
/** The clone context used by the transformer implementation. */
|
|
233
|
+
private readonly _cloneContext;
|
|
215
234
|
/** The transform to be applied to the placement of spatial elements
|
|
216
235
|
* This transform should be applied when:
|
|
217
236
|
* - source and target db have different ECEF locations
|
|
@@ -221,47 +240,38 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
221
240
|
* @beta
|
|
222
241
|
*/
|
|
223
242
|
private _linearSpatialTransform?;
|
|
224
|
-
|
|
243
|
+
/** The [[EditTxn]] used for write operations on the target iModel.
|
|
244
|
+
* The caller is responsible for starting, committing or abandoning this transaction.
|
|
245
|
+
* @beta
|
|
246
|
+
*/
|
|
247
|
+
protected readonly _targetEditTxn: EditTxn;
|
|
248
|
+
/** The optional [[EditTxn]] used for write operations on the source iModel during reverse synchronization.
|
|
249
|
+
* @beta
|
|
250
|
+
*/
|
|
251
|
+
protected readonly _sourceEditTxn?: EditTxn;
|
|
252
|
+
private _syncTypeResolver;
|
|
253
|
+
protected _provenanceManager: ProvenanceManager;
|
|
225
254
|
/** The Id of the Element in the **target** iModel that represents the **source** repository as a whole and scopes its [ExternalSourceAspect]($backend) instances. */
|
|
226
255
|
get targetScopeElementId(): Id64String;
|
|
227
256
|
/** a set of elements for which source provenance will be explicitly tracked by ExternalSourceAspects */
|
|
228
257
|
protected _elementsWithExplicitlyTrackedProvenance: Set<string>;
|
|
229
258
|
protected _partiallyCommittedElementIds: Id64Set;
|
|
230
259
|
protected _partiallyCommittedAspectIds: Id64Set;
|
|
231
|
-
/** the options that were used to initialize this transformer */
|
|
232
|
-
private readonly _options;
|
|
233
260
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
261
|
+
* Tracks target element IDs that were remapped by Code during the current
|
|
262
|
+
* transformation pass. Used to prevent deletion of target elements that have been remapped
|
|
263
|
+
* to a new source element in the same pass (e.g., when a source element is deleted and a
|
|
264
|
+
* new one with the same properties is added, causing a remap to the same target).
|
|
238
265
|
*/
|
|
239
|
-
private
|
|
240
|
-
static noEsaSyncDirectionErrorMessage: string;
|
|
241
|
-
/**
|
|
242
|
-
* Queries for an esa which matches the props in the provided aspectProps.
|
|
243
|
-
* @param dbToQuery db to run the query on for scope external source
|
|
244
|
-
* @param aspectProps aspectProps to search for @see ExternalSourceAspectProps
|
|
245
|
-
*/
|
|
246
|
-
static queryScopeExternalSourceAspect(dbToQuery: IModelDb, aspectProps: ExternalSourceAspectProps): {
|
|
247
|
-
aspectId: Id64String;
|
|
248
|
-
version?: string;
|
|
249
|
-
/** stringified json */
|
|
250
|
-
jsonProperties?: string;
|
|
251
|
-
} | undefined;
|
|
266
|
+
private _targetElementIdsRemappedByCode;
|
|
252
267
|
/**
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
/** @see [[IModelTransformOptions.targetScopeElementId]] */
|
|
261
|
-
targetScopeElementId: Id64String): "forward" | "reverse";
|
|
262
|
-
private determineSyncType;
|
|
263
|
-
get isReverseSynchronization(): boolean;
|
|
264
|
-
get isForwardSynchronization(): boolean;
|
|
268
|
+
* Tracks target model IDs that were imported (inserted or updated) during the current
|
|
269
|
+
* transformation pass. Used to prevent deletion of target models that have been recreated
|
|
270
|
+
* in the same pass (e.g. when a partition element is recreated with a new model).
|
|
271
|
+
*/
|
|
272
|
+
private _targetModelsImportedInCurrentTransform;
|
|
273
|
+
/** the options that were used to initialize this transformer */
|
|
274
|
+
private readonly _options;
|
|
265
275
|
private _changesetRanges;
|
|
266
276
|
/**
|
|
267
277
|
* Set if the transformer is being used to perform the provenance initialization step of a fork initialization.
|
|
@@ -273,11 +283,10 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
273
283
|
/** The element aspect classes that are considered to define provenance in the iModel */
|
|
274
284
|
static get provenanceElementAspectClasses(): (typeof Entity)[];
|
|
275
285
|
/** Construct a new IModelTransformer
|
|
276
|
-
* @param
|
|
277
|
-
* @param target Specifies the target IModelImporter or the target IModelDb that will be used to construct the target IModelImporter.
|
|
286
|
+
* @param args The required arguments including source and target.
|
|
278
287
|
* @param options The options that specify how the transformation should be done.
|
|
279
288
|
*/
|
|
280
|
-
constructor(
|
|
289
|
+
constructor(args: IModelTransformArgs, options?: IModelTransformOptions);
|
|
281
290
|
/** validates that the importer set on the transformer has the same values for its shared options as the transformer.
|
|
282
291
|
* @note This expects that the importer is already set on the transformer.
|
|
283
292
|
*/
|
|
@@ -286,28 +295,6 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
286
295
|
dispose(): void;
|
|
287
296
|
/** Log current settings that affect IModelTransformer's behavior. */
|
|
288
297
|
private logSettings;
|
|
289
|
-
/** Return the IModelDb where IModelTransformer will store its provenance.
|
|
290
|
-
* @note This will be [[targetDb]] except when it is a reverse synchronization. In that case it be [[sourceDb]].
|
|
291
|
-
*/
|
|
292
|
-
get provenanceDb(): IModelDb;
|
|
293
|
-
/** Return the IModelDb where IModelTransformer looks for entities referred to by stored provenance.
|
|
294
|
-
* @note This will be [[sourceDb]] except when it is a reverse synchronization. In that case it be [[targetDb]].
|
|
295
|
-
*/
|
|
296
|
-
get provenanceSourceDb(): IModelDb;
|
|
297
|
-
/** Create an ExternalSourceAspectProps in a standard way for an Element in an iModel --> iModel transformation. */
|
|
298
|
-
static initElementProvenanceOptions(sourceElementId: Id64String, targetElementId: Id64String, args: {
|
|
299
|
-
sourceDb: IModelDb;
|
|
300
|
-
targetDb: IModelDb;
|
|
301
|
-
isReverseSynchronization: boolean;
|
|
302
|
-
targetScopeElementId: Id64String;
|
|
303
|
-
}): ExternalSourceAspectProps;
|
|
304
|
-
static initRelationshipProvenanceOptions(sourceRelInstanceId: Id64String, targetRelInstanceId: Id64String, args: {
|
|
305
|
-
sourceDb: IModelDb;
|
|
306
|
-
targetDb: IModelDb;
|
|
307
|
-
isReverseSynchronization: boolean;
|
|
308
|
-
targetScopeElementId: Id64String;
|
|
309
|
-
forceOldRelationshipProvenanceMethod: boolean;
|
|
310
|
-
}): ExternalSourceAspectProps;
|
|
311
298
|
/**
|
|
312
299
|
* Previously the transformer would insert provenance always pointing to the "target" relationship.
|
|
313
300
|
* It should (and now by default does) instead insert provenance pointing to the provenanceSource
|
|
@@ -316,27 +303,7 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
316
303
|
*/
|
|
317
304
|
private _forceOldRelationshipProvenanceMethod;
|
|
318
305
|
/** Create an ExternalSourceAspectProps in a standard way for an Element in an iModel --> iModel transformation. */
|
|
319
|
-
initElementProvenance(sourceElementId: Id64String, targetElementId: Id64String): ExternalSourceAspectProps
|
|
320
|
-
/** Create an ExternalSourceAspectProps in a standard way for a Relationship in an iModel --> iModel transformations.
|
|
321
|
-
* The ExternalSourceAspect is meant to be owned by the Element in the target iModel that is the `sourceId` of transformed relationship.
|
|
322
|
-
* The `identifier` property of the ExternalSourceAspect will be the ECInstanceId of the relationship in the master iModel.
|
|
323
|
-
* The ECInstanceId of the relationship in the branch iModel will be stored in the JsonProperties of the ExternalSourceAspect.
|
|
324
|
-
*/
|
|
325
|
-
private initRelationshipProvenance;
|
|
326
|
-
/** NOTE: the json properties must be converted to string before insertion */
|
|
327
|
-
private _targetScopeProvenanceProps;
|
|
328
|
-
/**
|
|
329
|
-
* Index of the changeset that the transformer was at when the transformation begins (was constructed).
|
|
330
|
-
* Used to determine at the end which changesets were part of a synchronization.
|
|
331
|
-
*/
|
|
332
|
-
private _startingChangesetIndices;
|
|
333
|
-
private _cachedSynchronizationVersion;
|
|
334
|
-
/**
|
|
335
|
-
* We cache the synchronization version to avoid querying the target scoping ESA multiple times.
|
|
336
|
-
* If the target scoping ESA is ever updated we need to clear any potentially cached sync version otherwise we will get stale values.
|
|
337
|
-
* Sets this._cachedSynchronizationVersion to undefined.
|
|
338
|
-
*/
|
|
339
|
-
private clearCachedSynchronizationVersion;
|
|
306
|
+
initElementProvenance(sourceElementId: Id64String, targetElementId: Id64String): Promise<ExternalSourceAspectProps>;
|
|
340
307
|
/** the changeset in the scoping element's source version found for this transformation
|
|
341
308
|
* @note the version depends on whether this is a reverse synchronization or not, as
|
|
342
309
|
* it is stored separately for both synchronization directions.
|
|
@@ -344,80 +311,48 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
344
311
|
* @note empty string and -1 for changeset and index if it was transformed before federation guid update (pre 1.x) and @see [[IModelTransformOptions.branchRelationshipDataBehavior]] === "unsafe-migrate".
|
|
345
312
|
* @throws if the version is not found in a preexisting scope aspect and @see [[IModelTransformOptions.branchRelationshipDataBehavior]] !== "unsafe-migrate"
|
|
346
313
|
*/
|
|
347
|
-
protected
|
|
314
|
+
protected getSynchronizationVersion(): Promise<ChangesetIndexAndId>;
|
|
348
315
|
/**
|
|
349
316
|
* @returns provenance scope aspect if it exists in the provenanceDb.
|
|
350
317
|
* Provenance scope aspect is created and inserted into provenanceDb when [[initScopeProvenance]] is invoked.
|
|
351
318
|
*/
|
|
352
|
-
protected tryGetProvenanceScopeAspect(): ExternalSourceAspect | undefined
|
|
319
|
+
protected tryGetProvenanceScopeAspect(): Promise<ExternalSourceAspect | undefined>;
|
|
353
320
|
/**
|
|
354
321
|
* Make sure there are no conflicting other scope-type external source aspects on the *target scope element*,
|
|
355
322
|
* If there are none at all, insert one, then this must be a first synchronization.
|
|
356
|
-
* @returns the last synced version (changesetId) on the target scope's external source aspect,
|
|
357
|
-
* if this was a [BriefcaseDb]($backend)
|
|
358
323
|
*/
|
|
359
|
-
protected initScopeProvenance(): void
|
|
360
|
-
/** Returns true if a change was made to the aspectProps. */
|
|
361
|
-
private handleUnsafeMigrate;
|
|
324
|
+
protected initScopeProvenance(): Promise<void>;
|
|
362
325
|
/**
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
*/
|
|
368
|
-
static forEachTrackedElement(args: {
|
|
369
|
-
provenanceSourceDb: IModelDb;
|
|
370
|
-
provenanceDb: IModelDb;
|
|
371
|
-
targetScopeElementId: Id64String;
|
|
372
|
-
isReverseSynchronization: boolean;
|
|
373
|
-
fn: (sourceElementId: Id64String, targetElementId: Id64String) => void;
|
|
374
|
-
skipPropagateChangesToRootElements: boolean;
|
|
375
|
-
}): void;
|
|
376
|
-
private forEachTrackedElement;
|
|
326
|
+
* Get the IModelDb where provenance (ExternalSourceAspects) is stored.
|
|
327
|
+
* This will be targetDb except when it is a reverse synchronization, in which case it will be sourceDb.
|
|
328
|
+
*/
|
|
329
|
+
getProvenanceDb(): Promise<IModelDb>;
|
|
377
330
|
/**
|
|
378
|
-
*
|
|
379
|
-
* The identifier on the ESA is the id of the element in the [[IModelTransformer.provenanceSourceDb]]
|
|
380
|
-
* Therefore it only makes sense to call this function when you have an id in the provenanceSourceDb.
|
|
381
|
-
* @param entityInProvenanceSourceId
|
|
382
|
-
* @returns the elementId that the ESA is stored on, esa.Element.Id
|
|
331
|
+
* Get whether this is a reverse synchronization.
|
|
383
332
|
*/
|
|
384
|
-
|
|
333
|
+
getIsReverseSynchronization(): Promise<boolean>;
|
|
385
334
|
/**
|
|
386
|
-
*
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
*
|
|
391
|
-
*/
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
private _targetClassNameToClassId;
|
|
396
|
-
private _getRelClassId;
|
|
397
|
-
private _queryElemIdByFedGuid;
|
|
335
|
+
* Get whether this is a forward synchronization.
|
|
336
|
+
*/
|
|
337
|
+
getIsForwardSynchronization(): Promise<boolean>;
|
|
338
|
+
/**
|
|
339
|
+
* Updates the synchronization version on the scope ESA.
|
|
340
|
+
*/
|
|
341
|
+
updateSynchronizationVersion({ initializeReverseSyncVersion, }?: {
|
|
342
|
+
initializeReverseSyncVersion?: boolean | undefined;
|
|
343
|
+
}): Promise<void>;
|
|
398
344
|
/** Returns `true` if *brute force* delete detections should be run.
|
|
399
345
|
* @note This is only called if [[IModelTransformOptions.forceExternalSourceAspectProvenance]] option is true
|
|
400
346
|
* @note Not relevant for [[process]] when [[IModelTransformOptions.argsForProcessChanges]] are provided and change history is known.
|
|
401
347
|
*/
|
|
402
|
-
protected shouldDetectDeletes(): boolean
|
|
403
|
-
/**
|
|
404
|
-
* Detect Element deletes using ExternalSourceAspects in the target iModel and a *brute force* comparison against Elements
|
|
405
|
-
* in the source iModel.
|
|
406
|
-
* @deprecated in 1.x. Do not use this. // FIXME<MIKE>: how to better explain this?
|
|
407
|
-
* This method is only called during [[process]] when [[IModelTransformOptions.argsForProcessChanges]] is undefined and the option
|
|
408
|
-
* [[IModelTransformOptions.forceExternalSourceAspectProvenance]] is enabled. It is not
|
|
409
|
-
* necessary when calling [[process]] with [[IModelTransformOptions.argsForProcessChanges]] defined, since changeset information is sufficient.
|
|
410
|
-
* @note you do not need to call this directly unless processing a subset of an iModel.
|
|
411
|
-
* @throws [[IModelError]] If the required provenance information is not available to detect deletes.
|
|
412
|
-
*/
|
|
413
|
-
detectElementDeletes(): Promise<void>;
|
|
348
|
+
protected shouldDetectDeletes(): Promise<boolean>;
|
|
414
349
|
/** Transform the specified sourceElement into ElementProps for the target iModel.
|
|
415
350
|
* @param sourceElement The Element from the source iModel to transform.
|
|
416
351
|
* @returns ElementProps for the target iModel.
|
|
417
352
|
* @note A subclass can override this method to provide custom transform behavior.
|
|
418
353
|
* @note This can be called more than once for an element in arbitrary order, so it should not have side-effects.
|
|
419
354
|
*/
|
|
420
|
-
onTransformElement(sourceElement: Element): ElementProps
|
|
355
|
+
onTransformElement(sourceElement: Element): Promise<ElementProps>;
|
|
421
356
|
/**
|
|
422
357
|
* Calculate the transform between two ECEF locations
|
|
423
358
|
* @param srcDb
|
|
@@ -432,10 +367,13 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
432
367
|
/** Returns true if a change within sourceElement is detected.
|
|
433
368
|
* @param sourceElement The Element from the source iModel
|
|
434
369
|
* @note A subclass can override this method to provide custom change detection behavior.
|
|
370
|
+
* @note During change processing, elements not present in the changeset are short-circuited
|
|
371
|
+
* in the exporter before reaching this method. To add elements to the changeset programmatically,
|
|
372
|
+
* use [[addCustomChanges]] rather than overriding this method to expand processing.
|
|
435
373
|
*/
|
|
436
374
|
protected hasElementChanged(sourceElement: Element): boolean;
|
|
437
|
-
protected completePartiallyCommittedElements(): void
|
|
438
|
-
protected completePartiallyCommittedAspects(): void
|
|
375
|
+
protected completePartiallyCommittedElements(): Promise<void>;
|
|
376
|
+
protected completePartiallyCommittedAspects(): Promise<void>;
|
|
439
377
|
private doAllReferencesExistInTarget;
|
|
440
378
|
private assertReferenceExistsInSource;
|
|
441
379
|
/** Cause the specified Element and its child Elements (if applicable) to be exported from the source iModel and imported into the target iModel.
|
|
@@ -448,30 +386,32 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
448
386
|
* @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
|
|
449
387
|
*/
|
|
450
388
|
processChildElements(sourceElementId: Id64String): Promise<void>;
|
|
389
|
+
private processScopedElementExport;
|
|
451
390
|
/** Override of [IModelExportHandler.shouldExportElement]($transformer) that is called to determine if an element should be exported from the source iModel.
|
|
452
391
|
* @note Reaching this point means that the element has passed the standard exclusion checks in IModelExporter.
|
|
453
392
|
*/
|
|
454
|
-
shouldExportElement(_sourceElement: Element): boolean
|
|
393
|
+
shouldExportElement(_sourceElement: Element): Promise<boolean>;
|
|
455
394
|
/**
|
|
456
395
|
* If they haven't been already, import all of the required references
|
|
457
396
|
* @internal do not call, override or implement this, it will be removed
|
|
458
397
|
*/
|
|
459
398
|
preExportElement(sourceElement: Element): Promise<void>;
|
|
460
399
|
private getElemTransformState;
|
|
400
|
+
private queryElementIdByCode;
|
|
461
401
|
/** Override of [IModelExportHandler.onExportElement]($transformer) that imports an element into the target iModel when it is exported from the source iModel.
|
|
462
402
|
* This override calls [[onTransformElement]] and then [IModelImporter.importElement]($transformer) to update the target iModel.
|
|
463
403
|
*/
|
|
464
|
-
onExportElement(sourceElement: Element): void
|
|
404
|
+
onExportElement(sourceElement: Element): Promise<void>;
|
|
465
405
|
/** Override of [IModelExportHandler.onDeleteElement]($transformer) that is called when [IModelExporter]($transformer) detects that an Element has been deleted from the source iModel.
|
|
466
406
|
* This override propagates the delete to the target iModel via [IModelImporter.deleteElement]($transformer).
|
|
467
407
|
*/
|
|
468
|
-
onDeleteElement(sourceElementId: Id64String): void
|
|
408
|
+
onDeleteElement(sourceElementId: Id64String): Promise<void>;
|
|
469
409
|
/** Override of [IModelExportHandler.onExportModel]($transformer) that is called when a Model should be exported from the source iModel.
|
|
470
410
|
* This override calls [[onTransformModel]] and then [IModelImporter.importModel]($transformer) to update the target iModel.
|
|
471
411
|
*/
|
|
472
|
-
onExportModel(sourceModel: Model): void
|
|
412
|
+
onExportModel(sourceModel: Model): Promise<void>;
|
|
473
413
|
/** Override of [IModelExportHandler.onDeleteModel]($transformer) that is called when [IModelExporter]($transformer) detects that a [Model]($backend) has been deleted from the source iModel. */
|
|
474
|
-
onDeleteModel(sourceModelId: Id64String): void
|
|
414
|
+
onDeleteModel(sourceModelId: Id64String): Promise<void>;
|
|
475
415
|
/** Schedule modeled partition deletion */
|
|
476
416
|
private scheduleModeledPartitionDeletion;
|
|
477
417
|
/** Cause the model container, contents, and sub-models to be exported from the source iModel and imported into the target iModel.
|
|
@@ -495,27 +435,6 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
495
435
|
* @note A subclass can override this method to provide custom transform behavior.
|
|
496
436
|
*/
|
|
497
437
|
onTransformModel(sourceModel: Model, targetModeledElementId: Id64String): ModelProps;
|
|
498
|
-
/**
|
|
499
|
-
* Called at the end of a transformation,
|
|
500
|
-
* updates the target scope element to say that transformation up through the
|
|
501
|
-
* source's changeset has been performed. Also stores all changesets that occurred
|
|
502
|
-
* during the transformation as "pending synchronization changeset indices" @see TargetScopeProvenanceJsonProps
|
|
503
|
-
*
|
|
504
|
-
* You generally should not call this function yourself and use [[process]] with [[IModelTransformOptions.argsForProcessChanges]] provided instead.
|
|
505
|
-
* It is public for unsupported use cases of custom synchronization transforms.
|
|
506
|
-
* @note If [[IModelTransformOptions.argsForProcessChanges]] is not defined in this transformation, this function will return early without updating the sync version,
|
|
507
|
-
* unless the `initializeReverseSyncVersion` option is set to `true`
|
|
508
|
-
*
|
|
509
|
-
* The `initializeReverseSyncVersion` is added to set the reverse synchronization version during a forward synchronization.
|
|
510
|
-
* When set to `true`, it saves the reverse sync version as the current changeset of the targetDb. This is typically used for the first transformation between a master and branch iModel.
|
|
511
|
-
* Setting `initializeReverseSyncVersion` to `true` has the effect of making it so any changesets in the branch iModel at the time of the first transformation will be ignored during any future reverse synchronizations from the branch to the master iModel.
|
|
512
|
-
*
|
|
513
|
-
* Note that typically, the reverseSyncVersion is saved as the last changeset merged from the branch into master.
|
|
514
|
-
* Setting initializeReverseSyncVersion to true during a forward transformation could overwrite this correct reverseSyncVersion and should only be done during the first transformation between a master and branch iModel.
|
|
515
|
-
*/
|
|
516
|
-
updateSynchronizationVersion({ initializeReverseSyncVersion, }?: {
|
|
517
|
-
initializeReverseSyncVersion?: boolean | undefined;
|
|
518
|
-
}): void;
|
|
519
438
|
private finalizeTransformation;
|
|
520
439
|
/** Imports all relationships that subclass from the specified base class.
|
|
521
440
|
* @param baseRelClassFullName The specified base relationship class.
|
|
@@ -525,51 +444,45 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
525
444
|
/** Override of [IModelExportHandler.shouldExportRelationship]($transformer) that is called to determine if a [Relationship]($backend) should be exported.
|
|
526
445
|
* @note Reaching this point means that the relationship has passed the standard exclusion checks in [IModelExporter]($transformer).
|
|
527
446
|
*/
|
|
528
|
-
shouldExportRelationship(_sourceRelationship: Relationship): boolean
|
|
447
|
+
shouldExportRelationship(_sourceRelationship: Relationship): Promise<boolean>;
|
|
529
448
|
/** Override of [IModelExportHandler.onExportRelationship]($transformer) that imports a relationship into the target iModel when it is exported from the source iModel.
|
|
530
449
|
* This override calls [[onTransformRelationship]] and then [IModelImporter.importRelationship]($transformer) to update the target iModel.
|
|
531
450
|
*/
|
|
532
|
-
onExportRelationship(sourceRelationship: Relationship): void
|
|
451
|
+
onExportRelationship(sourceRelationship: Relationship): Promise<void>;
|
|
533
452
|
/** Override of [IModelExportHandler.onDeleteRelationship]($transformer) that is called when [IModelExporter]($transformer) detects that a [Relationship]($backend) has been deleted from the source iModel.
|
|
534
453
|
* This override propagates the delete to the target iModel via [IModelImporter.deleteRelationship]($transformer).
|
|
535
454
|
*/
|
|
536
|
-
onDeleteRelationship(sourceRelInstanceId: Id64String): void
|
|
455
|
+
onDeleteRelationship(sourceRelInstanceId: Id64String): Promise<void>;
|
|
537
456
|
private _yieldManager;
|
|
538
|
-
/** Detect Relationship deletes using ExternalSourceAspects in the target iModel and a *brute force* comparison against relationships in the source iModel.
|
|
539
|
-
* @deprecated in 1.x. Don't use this anymore
|
|
540
|
-
* @see [[process]] with [[IModelTransformOptions.argsForProcessChanges]] provided.
|
|
541
|
-
* @note This method is called from [[process]] when [[IModelTransformOptions.argsForProcessChanges]] are undefined, so it only needs to be called directly when processing a subset of an iModel.
|
|
542
|
-
* @throws [[IModelError]] If the required provenance information is not available to detect deletes.
|
|
543
|
-
*/
|
|
544
|
-
detectRelationshipDeletes(): Promise<void>;
|
|
545
457
|
/** Transform the specified sourceRelationship into RelationshipProps for the target iModel.
|
|
546
458
|
* @param sourceRelationship The Relationship from the source iModel to be transformed.
|
|
547
459
|
* @returns RelationshipProps for the target iModel.
|
|
548
460
|
* @note A subclass can override this method to provide custom transform behavior.
|
|
549
461
|
*/
|
|
550
462
|
protected onTransformRelationship(sourceRelationship: Relationship): RelationshipProps;
|
|
551
|
-
shouldExportElementAspect(aspect: ElementAspect): boolean
|
|
463
|
+
shouldExportElementAspect(aspect: ElementAspect): Promise<boolean>;
|
|
464
|
+
private prepareElementAspects;
|
|
552
465
|
/** Override of [IModelExportHandler.onExportElementUniqueAspect]($transformer) that imports an ElementUniqueAspect into the target iModel when it is exported from the source iModel.
|
|
553
466
|
* This override calls [[onTransformElementAspect]] and then [IModelImporter.importElementUniqueAspect]($transformer) to update the target iModel.
|
|
554
467
|
*/
|
|
555
|
-
onExportElementUniqueAspect(sourceAspect: ElementUniqueAspect): void
|
|
468
|
+
onExportElementUniqueAspect(sourceAspect: ElementUniqueAspect): Promise<void>;
|
|
556
469
|
/** Override of [IModelExportHandler.onExportElementMultiAspects]($transformer) that imports ElementMultiAspects into the target iModel when they are exported from the source iModel.
|
|
557
470
|
* This override calls [[onTransformElementAspect]] for each ElementMultiAspect and then [IModelImporter.importElementMultiAspects]($transformer) to update the target iModel.
|
|
558
471
|
* @note ElementMultiAspects are handled as a group to make it easier to differentiate between insert, update, and delete.
|
|
559
472
|
*/
|
|
560
|
-
onExportElementMultiAspects(sourceAspects: ElementMultiAspect[]): void
|
|
473
|
+
onExportElementMultiAspects(sourceAspects: ElementMultiAspect[]): Promise<void>;
|
|
561
474
|
/** Transform the specified sourceElementAspect into ElementAspectProps for the target iModel.
|
|
562
475
|
* @param sourceElementAspect The ElementAspect from the source iModel to be transformed.
|
|
563
476
|
* @returns ElementAspectProps for the target iModel.
|
|
564
477
|
* @note A subclass can override this method to provide custom transform behavior.
|
|
565
478
|
*/
|
|
566
|
-
protected onTransformElementAspect(sourceElementAspect: ElementAspect): ElementAspectProps
|
|
479
|
+
protected onTransformElementAspect(sourceElementAspect: ElementAspect): Promise<ElementAspectProps>;
|
|
567
480
|
/** The directory where schemas will be exported, a random temporary directory */
|
|
568
481
|
protected _schemaExportDir: string;
|
|
569
482
|
/** Override of [IModelExportHandler.shouldExportSchema]($transformer) that is called to determine if a schema should be exported
|
|
570
483
|
* @note the default behavior doesn't import schemas older than those already in the target
|
|
571
484
|
*/
|
|
572
|
-
shouldExportSchema(schemaKey: ECSchemaMetaData.SchemaKey): boolean
|
|
485
|
+
shouldExportSchema(schemaKey: ECSchemaMetaData.SchemaKey): Promise<boolean>;
|
|
573
486
|
private _longNamedSchemasMap;
|
|
574
487
|
/** Override of [IModelExportHandler.onExportSchema]($transformer) that serializes a schema to disk for [[processSchemas]] to import into
|
|
575
488
|
* the target iModel when it is exported from the source iModel.
|
|
@@ -591,7 +504,7 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
591
504
|
*/
|
|
592
505
|
processFonts(): Promise<void>;
|
|
593
506
|
/** Override of [IModelExportHandler.onExportFont]($transformer) that imports a font into the target iModel when it is exported from the source iModel. */
|
|
594
|
-
onExportFont(font: FontProps, _isUpdate: boolean | undefined): void
|
|
507
|
+
onExportFont(font: FontProps, _isUpdate: boolean | undefined): Promise<void>;
|
|
595
508
|
/** Cause all CodeSpecs to be exported from the source iModel and imported into the target iModel.
|
|
596
509
|
* @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
|
|
597
510
|
*/
|
|
@@ -603,9 +516,9 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
603
516
|
/** Override of [IModelExportHandler.shouldExportCodeSpec]($transformer) that is called to determine if a CodeSpec should be exported from the source iModel.
|
|
604
517
|
* @note Reaching this point means that the CodeSpec has passed the standard exclusion checks in [IModelExporter]($transformer).
|
|
605
518
|
*/
|
|
606
|
-
shouldExportCodeSpec(_sourceCodeSpec: CodeSpec): boolean
|
|
519
|
+
shouldExportCodeSpec(_sourceCodeSpec: CodeSpec): Promise<boolean>;
|
|
607
520
|
/** Override of [IModelExportHandler.onExportCodeSpec]($transformer) that imports a CodeSpec into the target iModel when it is exported from the source iModel. */
|
|
608
|
-
onExportCodeSpec(sourceCodeSpec: CodeSpec): void
|
|
521
|
+
onExportCodeSpec(sourceCodeSpec: CodeSpec): Promise<void>;
|
|
609
522
|
/** Recursively import all Elements and sub-Models that descend from the specified Subject */
|
|
610
523
|
processSubject(sourceSubjectId: Id64String, targetSubjectId: Id64String): Promise<void>;
|
|
611
524
|
/** state to prevent reinitialization, @see [[initialize]] */
|
|
@@ -613,6 +526,7 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
613
526
|
private _sourceChangeDataState;
|
|
614
527
|
/** length === 0 when _changeDataState = "no-change", length > 0 means "has-changes", otherwise undefined */
|
|
615
528
|
private _csFileProps?;
|
|
529
|
+
private _deletionRecordsByChangeset?;
|
|
616
530
|
/**
|
|
617
531
|
* Initialize prerequisites of processing, you must initialize with an [[InitOptions]] if you
|
|
618
532
|
* are intending to process changes. Callers may wish to explicitly call initialize if they need to execute code after initialize but before [[process]] is called.
|
|
@@ -620,6 +534,7 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
620
534
|
* Overriders must call `super.initialize()` first
|
|
621
535
|
*/
|
|
622
536
|
initialize(): Promise<void>;
|
|
537
|
+
private initializeChangesetScanAndExporter;
|
|
623
538
|
/**
|
|
624
539
|
* Reads all the changeset files in the private member of the transformer: _csFileProps
|
|
625
540
|
* and finds the corresponding target entity for any deleted source entities and remaps the sourceId to the targetId.
|
|
@@ -648,6 +563,8 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
648
563
|
*/
|
|
649
564
|
private processDeletedOp;
|
|
650
565
|
private _tryInitChangesetData;
|
|
566
|
+
/** Asserts that the EditTxn is active before any write operations. */
|
|
567
|
+
private assertEditTxnActive;
|
|
651
568
|
/**
|
|
652
569
|
* The behavior of process is influenced by [[IModelTransformOptions.argsForProcessChanges]] being defined or not defined during construction passed of the IModelTransformer.
|
|
653
570
|
* @section When argsForProcessChanges are defined:
|
|
@@ -676,9 +593,6 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
676
593
|
* @note [[processSchemas]] is not called automatically since the target iModel may want a different collection of schemas.
|
|
677
594
|
*/
|
|
678
595
|
private processAll;
|
|
679
|
-
/** previous provenance, either a federation guid, a `${sourceFedGuid}/${targetFedGuid}` pair, or required aspect props */
|
|
680
|
-
private _lastProvenanceEntityInfo;
|
|
681
|
-
private markLastProvenance;
|
|
682
596
|
/** Export changes from the source iModel and import the transformed entities into the target iModel.
|
|
683
597
|
* Inserts, updates, and deletes are determined by inspecting the changeset(s).
|
|
684
598
|
* @note the transformer assumes that you saveChanges after processing changes. You should not
|
|
@@ -709,12 +623,10 @@ export declare class TemplateModelCloner extends IModelTransformer {
|
|
|
709
623
|
/** Accumulates the mapping of sourceElementIds to targetElementIds from the elements in the template model that were cloned. */
|
|
710
624
|
private _sourceIdToTargetIdMap?;
|
|
711
625
|
/** Construct a new TemplateModelCloner
|
|
712
|
-
* @param
|
|
713
|
-
* @param targetDb Optionally specify the target IModelDb where the cloned template will be inserted.
|
|
714
|
-
* Typically this is left unspecified, and the default is to use the sourceDb as the target
|
|
626
|
+
* @param editTxn The [[EditTxn]] to use for all read and write operations. The source and target db are both derived from `editTxn.iModel`. Must be started before constructing.
|
|
715
627
|
* @note The expectation is that the template definitions are within the same iModel where instances will be placed.
|
|
716
628
|
*/
|
|
717
|
-
constructor(
|
|
629
|
+
constructor(editTxn: EditTxn);
|
|
718
630
|
/** Place a template from the sourceDb at the specified placement in the target model within the targetDb.
|
|
719
631
|
* @param sourceTemplateModelId The Id of the template model in the sourceDb
|
|
720
632
|
* @param targetModelId The Id of the target model (must be a subclass of GeometricModel3d) where the cloned component will be inserted.
|
|
@@ -732,6 +644,6 @@ export declare class TemplateModelCloner extends IModelTransformer {
|
|
|
732
644
|
*/
|
|
733
645
|
placeTemplate2d(sourceTemplateModelId: Id64String, targetModelId: Id64String, placement: Placement2d): Promise<Map<Id64String, Id64String>>;
|
|
734
646
|
/** Cloning from a template requires this override of onTransformElement. */
|
|
735
|
-
onTransformElement(sourceElement: Element): ElementProps
|
|
647
|
+
onTransformElement(sourceElement: Element): Promise<ElementProps>;
|
|
736
648
|
}
|
|
737
649
|
//# sourceMappingURL=IModelTransformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IModelTransformer.d.ts","sourceRoot":"","sources":["../../src/IModelTransformer.ts"],"names":[],"mappings":"AAUA,OAAO,
|
|
1
|
+
{"version":3,"file":"IModelTransformer.d.ts","sourceRoot":"","sources":["../../src/IModelTransformer.ts"],"names":[],"mappings":"AAUA,OAAO,EAIL,SAAS,EACT,OAAO,EACP,UAAU,EAMX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAKL,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAUL,OAAO,EAEP,OAAO,EACP,aAAa,EACb,kBAAkB,EAElB,mBAAmB,EACnB,MAAM,EAEN,oBAAoB,EAGpB,QAAQ,EAKR,KAAK,EAEL,YAAY,EACZ,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mBAAmB,EAGnB,QAAQ,EAGR,kBAAkB,EAClB,YAAY,EAEZ,yBAAyB,EACzB,SAAS,EAGT,oBAAoB,EAGpB,UAAU,EACV,WAAW,EACX,WAAW,EAIZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EAEpB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,kB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