@itwin/imodel-transformer 1.0.0-dev.2 → 1.0.0-dev.20

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/lib/cjs/Algo.d.ts +7 -0
  3. package/lib/cjs/Algo.d.ts.map +1 -1
  4. package/lib/cjs/Algo.js +7 -0
  5. package/lib/cjs/Algo.js.map +1 -1
  6. package/lib/cjs/BigMap.d.ts +6 -1
  7. package/lib/cjs/BigMap.d.ts.map +1 -1
  8. package/lib/cjs/BigMap.js +28 -2
  9. package/lib/cjs/BigMap.js.map +1 -1
  10. package/lib/cjs/BranchProvenanceInitializer.d.ts.map +1 -1
  11. package/lib/cjs/BranchProvenanceInitializer.js +2 -0
  12. package/lib/cjs/BranchProvenanceInitializer.js.map +1 -1
  13. package/lib/cjs/DetachedExportElementAspectsStrategy.js.map +1 -1
  14. package/lib/cjs/ECReferenceTypesCache.js.map +1 -1
  15. package/lib/cjs/ECSqlReaderAsyncIterableIteratorAdapter.js.map +1 -1
  16. package/lib/cjs/ElementCascadingDeleter.js.map +1 -1
  17. package/lib/cjs/EntityUnifier.d.ts.map +1 -1
  18. package/lib/cjs/EntityUnifier.js.map +1 -1
  19. package/lib/cjs/ExportElementAspectsStrategy.js.map +1 -1
  20. package/lib/cjs/ExportElementAspectsWithElementsStrategy.js.map +1 -1
  21. package/lib/cjs/IModelCloneContext.d.ts.map +1 -1
  22. package/lib/cjs/IModelCloneContext.js +16 -1
  23. package/lib/cjs/IModelCloneContext.js.map +1 -1
  24. package/lib/cjs/IModelExporter.d.ts +5 -6
  25. package/lib/cjs/IModelExporter.d.ts.map +1 -1
  26. package/lib/cjs/IModelExporter.js +15 -12
  27. package/lib/cjs/IModelExporter.js.map +1 -1
  28. package/lib/cjs/IModelImporter.d.ts +27 -4
  29. package/lib/cjs/IModelImporter.d.ts.map +1 -1
  30. package/lib/cjs/IModelImporter.js +61 -23
  31. package/lib/cjs/IModelImporter.js.map +1 -1
  32. package/lib/cjs/IModelTransformer.d.ts +113 -150
  33. package/lib/cjs/IModelTransformer.d.ts.map +1 -1
  34. package/lib/cjs/IModelTransformer.js +377 -340
  35. package/lib/cjs/IModelTransformer.js.map +1 -1
  36. package/lib/cjs/transformer.js +2 -1
  37. package/lib/cjs/transformer.js.map +1 -1
  38. package/package.json +17 -16
  39. package/lib/cjs/PendingReferenceMap.d.ts +0 -37
  40. package/lib/cjs/PendingReferenceMap.d.ts.map +0 -1
  41. package/lib/cjs/PendingReferenceMap.js +0 -92
  42. package/lib/cjs/PendingReferenceMap.js.map +0 -1
@@ -1,11 +1,9 @@
1
- import { AccessToken, Id64Array, Id64String } from "@itwin/core-bentley";
1
+ import { Id64Array, Id64Set, Id64String } from "@itwin/core-bentley";
2
2
  import * as ECSchemaMetaData from "@itwin/ecschema-metadata";
3
3
  import { Element, ElementAspect, ElementMultiAspect, ElementUniqueAspect, Entity, ExternalSourceAspect, IModelDb, Model, Relationship, RelationshipProps } from "@itwin/core-backend";
4
- import { ChangesetIndexAndId, CodeSpec, ElementAspectProps, ElementProps, EntityReference, EntityReferenceSet, ExternalSourceAspectProps, FontProps, ModelProps, Placement2d, Placement3d } from "@itwin/core-common";
4
+ import { ChangesetIndexAndId, CodeSpec, ElementAspectProps, ElementProps, ExternalSourceAspectProps, FontProps, ModelProps, Placement2d, Placement3d } from "@itwin/core-common";
5
5
  import { ExportChangesOptions, ExportSchemaResult, IModelExporter, IModelExportHandler } from "./IModelExporter";
6
6
  import { IModelImporter, OptimizeGeometryOptions } from "./IModelImporter";
7
- import { PendingReferenceMap } from "./PendingReferenceMap";
8
- import { EntityMap } from "./EntityMap";
9
7
  import { IModelCloneContext } from "./IModelCloneContext";
10
8
  /** Options provided to the [[IModelTransformer]] constructor.
11
9
  * @beta
@@ -18,7 +16,7 @@ export interface IModelTransformOptions {
18
16
  */
19
17
  targetScopeElementId?: Id64String;
20
18
  /** Set to `true` if IModelTransformer should not record its provenance.
21
- * Provenance tracks a target element back to its corresponding source element and is essential for [[IModelTransformer.processChanges]] to work properly.
19
+ * Provenance tracks a target element back to its corresponding source element and is essential for [[IModelTransformer.process]] to work properly when [[IModelTransformOptions.argsForProcessChanges]] are provided.
22
20
  * Turning off IModelTransformer provenance is really only relevant for producing snapshots or another one time transformations.
23
21
  * @note See the [[includeSourceProvenance]] option for determining whether existing source provenance is cloned into the target.
24
22
  * @note The default is `false` which means that new IModelTransformer provenance will be recorded.
@@ -35,13 +33,6 @@ export interface IModelTransformOptions {
35
33
  * @note This *hint* is typically only set for the first synchronization after the iModel was copied since every other synchronization can utilize the provenance.
36
34
  */
37
35
  wasSourceIModelCopiedToTarget?: boolean;
38
- /** Flag that indicates that the current source and target iModels are now synchronizing in the reverse direction from a prior synchronization.
39
- * The most common example is to first synchronize master to branch, make changes to the branch, and then reverse directions to synchronize from branch to master.
40
- * This means that the provenance on the (current) source is used instead.
41
- * @note This also means that only [[IModelTransformer.processChanges]] can detect deletes.
42
- * @deprecated in 1.x this option is ignored and the transformer now detects synchronization direction using the target scope element
43
- */
44
- isReverseSynchronization?: boolean;
45
36
  /** Flag that indicates whether or not the transformation process needs to consider the source geometry before cloning/transforming.
46
37
  * For standard cases, it is not required to load the source GeometryStream in JavaScript since the cloning happens in native code.
47
38
  * Also, the target GeometryStream will be available in JavaScript prior to insert.
@@ -70,20 +61,6 @@ export interface IModelTransformOptions {
70
61
  * @beta
71
62
  */
72
63
  preserveElementIdsForFiltering?: boolean;
73
- /** The behavior to use when an element reference (id) is found stored as a reference on an element in the source,
74
- * but the referenced element does not actually exist in the source.
75
- * It is possible to craft an iModel with dangling references/invalidated relationships by, e.g., deleting certain
76
- * elements without fixing up references.
77
- *
78
- * @note "reject" will throw an error and reject the transformation upon finding this case.
79
- * @note "ignore" passes the issue down to consuming applications, iModels that have invalid element references
80
- * like this can cause errors, and you should consider adding custom logic in your transformer to remove the
81
- * reference depending on your use case.
82
- * @default "reject"
83
- * @beta
84
- * @deprecated in 3.x. use [[danglingReferencesBehavior]] instead, the use of the term *predecessors* was confusing and became inaccurate when the transformer could handle cycles
85
- */
86
- danglingPredecessorsBehavior?: "reject" | "ignore";
87
64
  /** The behavior to use when an element reference (id) is found stored as a reference on an element in the source,
88
65
  * but the referenced element does not actually exist in the source.
89
66
  * It is possible to craft an iModel with dangling references/invalidated relationships by, e.g., deleting certain
@@ -97,7 +74,7 @@ export interface IModelTransformOptions {
97
74
  * @beta
98
75
  */
99
76
  danglingReferencesBehavior?: "reject" | "ignore";
100
- /** If defined, options to be supplied to [[IModelImporter.optimizeGeometry]] by [[IModelTransformer.processChanges]] and [[IModelTransformer.processAll]]
77
+ /** If defined, options to be supplied to [[IModelImporter.optimizeGeometry]] by [[IModelTransformer.process]]
101
78
  * as a post-processing step to optimize the geometry in the iModel.
102
79
  * @beta
103
80
  */
@@ -117,13 +94,6 @@ export interface IModelTransformOptions {
117
94
  * @default false
118
95
  */
119
96
  noDetachChangeCache?: boolean;
120
- /**
121
- * Do not check that processChanges is called from the next changeset index.
122
- * This is an unsafe option (e.g. it can cause data loss in future branch operations)
123
- * and you should not use it.
124
- * @default false
125
- */
126
- ignoreMissingChangesetsInSynchronizations?: boolean;
127
97
  /**
128
98
  * Do not error out if a scoping ESA @see ExternalSourceAspectProps is found without a version or jsonProperties defined on that scoping ESA.
129
99
  * If true, the version and jsonproperties will be properly set on the scoping ESA @see TargetScopeProvenanceJsonProps after the transformer is complete.
@@ -135,31 +105,15 @@ export interface IModelTransformOptions {
135
105
  branchRelationshipDataBehavior?: "unsafe-migrate" | "reject";
136
106
  /**
137
107
  * Skip propagating changes made to the root subject, dictionaryModel and IModelImporter._realityDataSourceLinkPartitionStaticId (0xe)
138
- * @default false
108
+ * If it is set to false, changes to root elements are propagated, the root subject name gets changed and leads to the iModelDb.name property being updated in .initializeiModelDb
109
+ * @default true
139
110
  */
140
111
  skipPropagateChangesToRootElements?: boolean;
141
- }
142
- /**
143
- * A container for tracking the state of a partially committed entity and finalizing it when it's ready to be fully committed
144
- * @internal
145
- */
146
- declare class PartiallyCommittedEntity {
147
- /**
148
- * A set of "model|element ++ ID64" pairs, (e.g. `model0x11` or `element0x12`)
149
- * It is possible for the submodel of an element to be separately resolved from the actual element,
150
- * so its resolution must be tracked separately
151
- */
152
- private _missingReferences;
153
- private _onComplete;
154
- constructor(
155
112
  /**
156
- * A set of "model|element ++ ID64" pairs, (e.g. `model0x11` or `element0x12`)
157
- * It is possible for the submodel of an element to be separately resolved from the actual element,
158
- * so its resolution must be tracked separately
113
+ * Arguments to use for the processing of changes. The args being defined or not defined will influence the behavior of @see [[IModelTransformer.process]].
114
+ * @default undefined
159
115
  */
160
- _missingReferences: EntityReferenceSet, _onComplete: () => void);
161
- resolveReference(id: EntityReference): void;
162
- forceComplete(): void;
116
+ argsForProcessChanges?: ProcessChangesOptions;
163
117
  }
164
118
  /**
165
119
  * Data type for persisting change version information within provenance Scope ExternalSourceAspect.
@@ -186,7 +140,6 @@ export interface TargetScopeProvenanceJsonProps {
186
140
  * @beta
187
141
  */
188
142
  export interface InitOptions {
189
- accessToken?: AccessToken;
190
143
  /**
191
144
  * Include changes from this changeset up through and including the current changeset.
192
145
  * @note To form a range of versions to process, set `startChangeset` for the start (inclusive)
@@ -199,41 +152,33 @@ export interface InitOptions {
199
152
  };
200
153
  }
201
154
  /**
202
- * Arguments for [[IModelTransformer.processChanges]]
203
- */
204
- export type ProcessChangesOptions = ExportChangesOptions & FinalizeTransformationOptions;
205
- /**
206
- * Options which modify the behavior of [[IModelTransformer.finalizeTransformation]], called at the end of [[IModelTransformer.processAll]] and [[IModelTransformer.processChanges]].
207
- * @beta
155
+ * Arguments used during [[IModelTransformer.process]] if provided in [[IModelTransformOptions.argsForProcessChanges]].
208
156
  */
209
- export interface FinalizeTransformationOptions {
210
- /**
211
- * This description will be used when the transformer needs to push changes to the branch during a reverse sync.
212
- * @default `Update provenance in response to a reverse sync to iModel: ${this.targetDb.iModelId}`
213
- */
214
- reverseSyncBranchChangesetDescription?: string;
157
+ export type ProcessChangesOptions = ExportChangesOptions & {
158
+ /** how to call saveChanges on the target. Must call targetDb.saveChanges, should not edit the iModel */
159
+ saveTargetChanges?: (transformer: IModelTransformer) => Promise<void>;
215
160
  /**
216
- * This description will be used when the transformer needs to push changes to master during a reverse sync.
217
- * @default `Reverse sync of iModel: ${this.sourceDb.iModelId}`
161
+ * 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.
162
+ * @note This option is not without risk! You must also set @see branchRelationshipDataBehavior to "unsafe-migrate".
163
+ * @note This value is ignored if the version property on the scoping ESA is NOT undefined or empty string.
164
+ * @default ""
218
165
  */
219
- reverseSyncMasterChangesetDescription?: string;
166
+ unsafeFallbackSyncVersion?: string;
220
167
  /**
221
- * This description will be used when the transformer needs to push changes to the branch during a forward sync.
222
- * @default `Forward sync of iModel: ${this.sourceDb.iModelId}`
168
+ * The reverse sync version to set on the scoping ESA @see TargetScopeProvenanceJsonProps upon startup, if the reverseSync property on the scoping ESA is undefined or empty string.
169
+ * @note This option is not without risk! You must also set @see branchRelationshipDataBehavior to "unsafe-migrate".
170
+ * @note This value is ignored if the reverseSyncVersion property on the scoping ESA is NOT undefined or empty string.
171
+ * @default ""
223
172
  */
224
- forwardSyncBranchChangesetDescription?: string;
173
+ unsafeFallbackReverseSyncVersion?: string;
225
174
  /**
226
- * This description will be used when the transformer needs to push changes to the branch during a provenance init transform.
227
- * @default `initialized branch provenance with master iModel: ${this.sourceDb.iModelId}`
175
+ * Do not check that process (with [[IModelTransformOptions.argsForProcessChanges]] provided) is called from the next changeset index.
176
+ * This is an unsafe option (e.g. it can cause data loss in future branch operations)
177
+ * and you should not use it.
178
+ * @default false
228
179
  */
229
- provenanceInitTransformChangesetDescription?: string;
230
- /** how to call saveChanges on the target. Must call targetDb.saveChanges, should not edit the iModel */
231
- saveTargetChanges?: (transformer: IModelTransformer) => Promise<void>;
232
- }
233
- /** Arguments you can pass to [[IModelTransformer.initExternalSourceAspects]]
234
- * @deprecated in 0.1.0. Use [[InitOptions]] (and [[IModelTransformer.initialize]]) instead.
235
- */
236
- export type InitFromExternalSourceAspectsArgs = InitOptions;
180
+ ignoreMissingChangesetsInSynchronizations?: boolean;
181
+ };
237
182
  export interface RelationshipPropsForDelete {
238
183
  id: Id64String;
239
184
  classFullName: string;
@@ -258,16 +203,14 @@ export declare class IModelTransformer extends IModelExportHandler {
258
203
  private _syncType?;
259
204
  /** The Id of the Element in the **target** iModel that represents the **source** repository as a whole and scopes its [ExternalSourceAspect]($backend) instances. */
260
205
  get targetScopeElementId(): Id64String;
261
- /** map of (unprocessed element, referencing processed element) pairs to the partially committed element that needs the reference resolved
262
- * and have some helper methods below for now */
263
- protected _pendingReferences: PendingReferenceMap<PartiallyCommittedEntity>;
264
206
  /** a set of elements for which source provenance will be explicitly tracked by ExternalSourceAspects */
265
207
  protected _elementsWithExplicitlyTrackedProvenance: Set<string>;
266
- /** map of partially committed entities to their partial commit progress */
267
- protected _partiallyCommittedEntities: EntityMap<PartiallyCommittedEntity>;
208
+ protected _partiallyCommittedElementIds: Id64Set;
209
+ protected _partiallyCommittedAspectIds: Id64Set;
268
210
  /** the options that were used to initialize this transformer */
269
211
  private readonly _options;
270
- private _isSynchronization;
212
+ /** @see hasDefinitionContainerDeletionFeature */
213
+ private _hasDefinitionContainerDeletionFeature?;
271
214
  /**
272
215
  * A private variable meant to be set by tests which have an outdated way of setting up transforms. In all synchronizations today we expect to find an ESA in the branch db which describes the master -> branch relationship.
273
216
  * The exception to this is the first transform aka the provenance initializing transform which requires that the master imodel and the branch imodel are identical at the time of provenance initialization.
@@ -310,10 +253,6 @@ export declare class IModelTransformer extends IModelExportHandler {
310
253
  static get provenanceElementClasses(): (typeof Entity)[];
311
254
  /** The element aspect classes that are considered to define provenance in the iModel */
312
255
  static get provenanceElementAspectClasses(): (typeof Entity)[];
313
- /** Set of entity keys which were not exported and don't need to be tracked for pending reference resolution.
314
- * @note Currently only tracks elements which were not exported.
315
- */
316
- protected _skippedEntities: Set<`m${string}` | `e${string}` | `a${string}` | `r${string}`>;
317
256
  /** Construct a new IModelTransformer
318
257
  * @param source Specifies the source IModelExporter or the source IModelDb that will be used to construct the source IModelExporter.
319
258
  * @param target Specifies the target IModelImporter or the target IModelDb that will be used to construct the target IModelImporter.
@@ -373,17 +312,23 @@ export declare class IModelTransformer extends IModelExportHandler {
373
312
  */
374
313
  private _startingChangesetIndices;
375
314
  private _cachedSynchronizationVersion;
376
- /** the changeset in the scoping element's source version found for this transformation
377
- * @note: the version depends on whether this is a reverse synchronization or not, as
378
- * it is stored separately for both synchronization directions.
379
- * @note: must call [[initScopeProvenance]] before using this property.
380
- * @note: empty string and -1 for changeset and index if it has never been transformed or was transformed before federation guid update (pre 1.x).
315
+ /**
316
+ * As of itwinjs 4.6.0, definitionContainers are now deleted as if they were DefinitionPartitions as opposed to Definitions.
317
+ * This variable being true will be used to special case the deletion of DefinitionContainers the same way DefinitionPartitions are deleted.
381
318
  */
382
- private get _synchronizationVersion();
319
+ protected get hasDefinitionContainerDeletionFeature(): boolean;
320
+ /**
321
+ * We cache the synchronization version to avoid querying the target scoping ESA multiple times.
322
+ * If the target scoping ESA is ever updated we need to clear any potentially cached sync version otherwise we will get stale values.
323
+ * Sets this._cachedSynchronizationVersion to undefined.
324
+ */
325
+ private clearCachedSynchronizationVersion;
383
326
  /** the changeset in the scoping element's source version found for this transformation
384
- * @note: the version depends on whether this is a reverse synchronization or not, as
327
+ * @note the version depends on whether this is a reverse synchronization or not, as
385
328
  * it is stored separately for both synchronization directions.
386
- * @note: empty string and -1 for changeset and index if it has never been transformed, or was transformed before federation guid update (pre 1.x).
329
+ * @note empty string and -1 for changeset and index if it has never been transformed
330
+ * @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".
331
+ * @throws if the version is not found in a preexisting scope aspect and @see [[IModelTransformOptions.branchRelationshipDataBehavior]] !== "unsafe-migrate"
387
332
  */
388
333
  protected get synchronizationVersion(): ChangesetIndexAndId;
389
334
  /**
@@ -398,6 +343,8 @@ export declare class IModelTransformer extends IModelExportHandler {
398
343
  * if this was a [BriefcaseDb]($backend)
399
344
  */
400
345
  protected initScopeProvenance(): void;
346
+ /** Returns true if a change was made to the aspectProps. */
347
+ private handleUnsafeMigrate;
401
348
  /**
402
349
  * Iterate all matching federation guids and ExternalSourceAspects in the provenance iModel (target unless reverse sync)
403
350
  * and call a function for each one.
@@ -436,24 +383,20 @@ export declare class IModelTransformer extends IModelExportHandler {
436
383
  private _queryElemIdByFedGuid;
437
384
  /** Returns `true` if *brute force* delete detections should be run.
438
385
  * @note This is only called if [[IModelTransformOptions.forceExternalSourceAspectProvenance]] option is true
439
- * @note Not relevant for processChanges when change history is known.
386
+ * @note Not relevant for [[process]] when [[IModelTransformOptions.argsForProcessChanges]] are provided and change history is known.
440
387
  */
441
388
  protected shouldDetectDeletes(): boolean;
442
389
  /**
443
390
  * Detect Element deletes using ExternalSourceAspects in the target iModel and a *brute force* comparison against Elements
444
391
  * in the source iModel.
445
392
  * @deprecated in 1.x. Do not use this. // FIXME<MIKE>: how to better explain this?
446
- * This method is only called during [[processAll]] when the option
393
+ * This method is only called during [[process]] when [[IModelTransformOptions.argsForProcessChanges]] is undefined and the option
447
394
  * [[IModelTransformOptions.forceExternalSourceAspectProvenance]] is enabled. It is not
448
- * necessary when using [[processChanges]] since changeset information is sufficient.
395
+ * necessary when calling [[process]] with [[IModelTransformOptions.argsForProcessChanges]] defined, since changeset information is sufficient.
449
396
  * @note you do not need to call this directly unless processing a subset of an iModel.
450
397
  * @throws [[IModelError]] If the required provenance information is not available to detect deletes.
451
398
  */
452
399
  detectElementDeletes(): Promise<void>;
453
- /**
454
- * @deprecated in 3.x, this no longer has any effect except emitting a warning
455
- */
456
- protected skipElement(_sourceElement: Element): void;
457
400
  /** Transform the specified sourceElement into ElementProps for the target iModel.
458
401
  * @param sourceElement The Element from the source iModel to transform.
459
402
  * @returns ElementProps for the target iModel.
@@ -465,34 +408,27 @@ export declare class IModelTransformer extends IModelExportHandler {
465
408
  private _deletedSourceRelationshipData?;
466
409
  /** Returns true if a change within sourceElement is detected.
467
410
  * @param sourceElement The Element from the source iModel
468
- * @param targetElementId The Element from the target iModel to compare against.
469
411
  * @note A subclass can override this method to provide custom change detection behavior.
470
412
  */
471
- protected hasElementChanged(sourceElement: Element, _targetElementId: Id64String): boolean;
472
- private static transformCallbackFor;
473
- /** callback to perform when a partial element says it's ready to be completed
474
- * transforms the source element with all references now valid, then updates the partial element with the results
475
- */
476
- private makePartialEntityCompleter;
477
- /** collect references this entity has that are yet to be mapped, and if there are any
478
- * create a [[PartiallyCommittedEntity]] to track resolution of those references
479
- */
480
- private collectUnmappedReferences;
413
+ protected hasElementChanged(sourceElement: Element): boolean;
414
+ protected completePartiallyCommittedElements(): void;
415
+ protected completePartiallyCommittedAspects(): void;
416
+ private doAllReferencesExistInTarget;
417
+ private assertReferenceExistsInSource;
481
418
  /** Cause the specified Element and its child Elements (if applicable) to be exported from the source iModel and imported into the target iModel.
482
419
  * @param sourceElementId Identifies the Element from the source iModel to import.
483
- * @note This method is called from [[processChanges]] and [[processAll]], so it only needs to be called directly when processing a subset of an iModel.
420
+ * @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
484
421
  */
485
422
  processElement(sourceElementId: Id64String): Promise<void>;
486
423
  /** Import child elements into the target IModelDb
487
424
  * @param sourceElementId Import the child elements of this element in the source IModelDb.
488
- * @note This method is called from [[processChanges]] and [[processAll]], so it only needs to be called directly when processing a subset of an iModel.
425
+ * @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
489
426
  */
490
427
  processChildElements(sourceElementId: Id64String): Promise<void>;
491
428
  /** Override of [IModelExportHandler.shouldExportElement]($transformer) that is called to determine if an element should be exported from the source iModel.
492
429
  * @note Reaching this point means that the element has passed the standard exclusion checks in IModelExporter.
493
430
  */
494
431
  shouldExportElement(_sourceElement: Element): boolean;
495
- onSkipElement(sourceElementId: Id64String): void;
496
432
  /**
497
433
  * If they haven't been already, import all of the required references
498
434
  * @internal do not call, override or implement this, it will be removed
@@ -503,7 +439,6 @@ export declare class IModelTransformer extends IModelExportHandler {
503
439
  * This override calls [[onTransformElement]] and then [IModelImporter.importElement]($transformer) to update the target iModel.
504
440
  */
505
441
  onExportElement(sourceElement: Element): void;
506
- private resolvePendingReferences;
507
442
  /** Override of [IModelExportHandler.onDeleteElement]($transformer) that is called when [IModelExporter]($transformer) detects that an Element has been deleted from the source iModel.
508
443
  * This override propagates the delete to the target iModel via [IModelImporter.deleteElement]($transformer).
509
444
  */
@@ -518,14 +453,14 @@ export declare class IModelTransformer extends IModelExportHandler {
518
453
  private scheduleModeledPartitionDeletion;
519
454
  /** Cause the model container, contents, and sub-models to be exported from the source iModel and imported into the target iModel.
520
455
  * @param sourceModeledElementId Import this [Model]($backend) from the source IModelDb.
521
- * @note This method is called from [[processChanges]] and [[processAll]], so it only needs to be called directly when processing a subset of an iModel.
456
+ * @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
522
457
  */
523
458
  processModel(sourceModeledElementId: Id64String): Promise<void>;
524
459
  /** Cause the model contents to be exported from the source iModel and imported into the target iModel.
525
460
  * @param sourceModelId Import the contents of this model from the source IModelDb.
526
461
  * @param targetModelId Import into this model in the target IModelDb. The target model must exist prior to this call.
527
462
  * @param elementClassFullName Optional classFullName of an element subclass to limit import query against the source model.
528
- * @note This method is called from [[processChanges]] and [[processAll]], so it only needs to be called directly when processing a subset of an iModel.
463
+ * @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
529
464
  */
530
465
  processModelContents(sourceModelId: Id64String, targetModelId: Id64String, elementClassFullName?: string): Promise<void>;
531
466
  /** Cause all sub-models that recursively descend from the specified Subject to be exported from the source iModel and imported into the target iModel. */
@@ -537,27 +472,31 @@ export declare class IModelTransformer extends IModelExportHandler {
537
472
  * @note A subclass can override this method to provide custom transform behavior.
538
473
  */
539
474
  onTransformModel(sourceModel: Model, targetModeledElementId: Id64String): ModelProps;
540
- /** Import elements that were deferred in a prior pass.
541
- * @deprecated in 3.x. This method is no longer necessary since the transformer no longer needs to defer elements
542
- */
543
- processDeferredElements(_numRetries?: number): Promise<void>;
544
- /** called at the end ([[finalizeTransformation]]) of a transformation,
475
+ /**
476
+ * Called at the end of a transformation,
545
477
  * updates the target scope element to say that transformation up through the
546
478
  * source's changeset has been performed. Also stores all changesets that occurred
547
479
  * during the transformation as "pending synchronization changeset indices" @see TargetScopeProvenanceJsonProps
548
480
  *
549
- * You generally should not call this function yourself and use [[processChanges]] instead.
481
+ * You generally should not call this function yourself and use [[process]] with [[IModelTransformOptions.argsForProcessChanges]] provided instead.
550
482
  * It is public for unsupported use cases of custom synchronization transforms.
551
- * @note if you are not running processChanges in this transformation, this will fail
552
- * without setting the `force` option to `true`
483
+ * @note If [[IModelTransformOptions.argsForProcessChanges]] is not defined in this transformation, this function will return early without updating the sync version,
484
+ * unless the `initializeReverseSyncVersion` option is set to `true`
485
+ *
486
+ * The `initializeReverseSyncVersion` is added to set the reverse synchronization version during a forward synchronization.
487
+ * 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.
488
+ * 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.
489
+ *
490
+ * Note that typically, the reverseSyncVersion is saved as the last changeset merged from the branch into master.
491
+ * 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.
553
492
  */
554
- updateSynchronizationVersion({ force }?: {
555
- force?: boolean | undefined;
493
+ updateSynchronizationVersion({ initializeReverseSyncVersion, }?: {
494
+ initializeReverseSyncVersion?: boolean | undefined;
556
495
  }): void;
557
496
  private finalizeTransformation;
558
497
  /** Imports all relationships that subclass from the specified base class.
559
498
  * @param baseRelClassFullName The specified base relationship class.
560
- * @note This method is called from [[processChanges]] and [[processAll]], so it only needs to be called directly when processing a subset of an iModel.
499
+ * @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
561
500
  */
562
501
  processRelationships(baseRelClassFullName: string): Promise<void>;
563
502
  /** Override of [IModelExportHandler.shouldExportRelationship]($transformer) that is called to determine if a [Relationship]($backend) should be exported.
@@ -575,8 +514,8 @@ export declare class IModelTransformer extends IModelExportHandler {
575
514
  private _yieldManager;
576
515
  /** Detect Relationship deletes using ExternalSourceAspects in the target iModel and a *brute force* comparison against relationships in the source iModel.
577
516
  * @deprecated in 1.x. Don't use this anymore
578
- * @see processChanges
579
- * @note This method is called from [[processAll]] and is not needed by [[processChanges]], so it only needs to be called directly when processing a subset of an iModel.
517
+ * @see [[process]] with [[IModelTransformOptions.argsForProcessChanges]] provided.
518
+ * @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.
580
519
  * @throws [[IModelError]] If the required provenance information is not available to detect deletes.
581
520
  */
582
521
  detectRelationshipDeletes(): Promise<void>;
@@ -598,11 +537,10 @@ export declare class IModelTransformer extends IModelExportHandler {
598
537
  onExportElementMultiAspects(sourceAspects: ElementMultiAspect[]): void;
599
538
  /** Transform the specified sourceElementAspect into ElementAspectProps for the target iModel.
600
539
  * @param sourceElementAspect The ElementAspect from the source iModel to be transformed.
601
- * @param _targetElementId The ElementId of the target Element that will own the ElementAspects after transformation.
602
540
  * @returns ElementAspectProps for the target iModel.
603
541
  * @note A subclass can override this method to provide custom transform behavior.
604
542
  */
605
- protected onTransformElementAspect(sourceElementAspect: ElementAspect, _targetElementId: Id64String): ElementAspectProps;
543
+ protected onTransformElementAspect(sourceElementAspect: ElementAspect): ElementAspectProps;
606
544
  /** The directory where schemas will be exported, a random temporary directory */
607
545
  protected _schemaExportDir: string;
608
546
  /** Override of [IModelExportHandler.shouldExportSchema]($transformer) that is called to determine if a schema should be exported
@@ -626,17 +564,17 @@ export declare class IModelTransformer extends IModelExportHandler {
626
564
  */
627
565
  processSchemas(): Promise<void>;
628
566
  /** Cause all fonts to be exported from the source iModel and imported into the target iModel.
629
- * @note This method is called from [[processChanges]] and [[processAll]], so it only needs to be called directly when processing a subset of an iModel.
567
+ * @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
630
568
  */
631
569
  processFonts(): Promise<void>;
632
570
  /** Override of [IModelExportHandler.onExportFont]($transformer) that imports a font into the target iModel when it is exported from the source iModel. */
633
571
  onExportFont(font: FontProps, _isUpdate: boolean | undefined): void;
634
572
  /** Cause all CodeSpecs to be exported from the source iModel and imported into the target iModel.
635
- * @note This method is called from [[processChanges]] and [[processAll]], so it only needs to be called directly when processing a subset of an iModel.
573
+ * @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
636
574
  */
637
575
  processCodeSpecs(): Promise<void>;
638
576
  /** Cause a single CodeSpec to be exported from the source iModel and imported into the target iModel.
639
- * @note This method is called from [[processChanges]] and [[processAll]], so it only needs to be called directly when processing a subset of an iModel.
577
+ * @note This method is called from [[process]], so it only needs to be called directly when processing a subset of an iModel.
640
578
  */
641
579
  processCodeSpec(codeSpecName: string): Promise<void>;
642
580
  /** Override of [IModelExportHandler.shouldExportCodeSpec]($transformer) that is called to determine if a CodeSpec should be exported from the source iModel.
@@ -654,11 +592,11 @@ export declare class IModelTransformer extends IModelExportHandler {
654
592
  private _csFileProps?;
655
593
  /**
656
594
  * Initialize prerequisites of processing, you must initialize with an [[InitOptions]] if you
657
- * are intending to process changes, but prefer using [[processChanges]] explicitly since it calls this.
595
+ * 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.
658
596
  * @note Called by all `process*` functions implicitly.
659
597
  * Overriders must call `super.initialize()` first
660
598
  */
661
- initialize(args?: InitOptions): Promise<void>;
599
+ initialize(): Promise<void>;
662
600
  /**
663
601
  * Reads all the changeset files in the private member of the transformer: _csFileProps and does two things with these changesets.
664
602
  * Finds the corresponding target entity for any deleted source entities and remaps the sourceId to the targetId.
@@ -679,21 +617,47 @@ export declare class IModelTransformer extends IModelExportHandler {
679
617
  */
680
618
  private processDeletedOp;
681
619
  private _tryInitChangesetData;
620
+ /**
621
+ * The behavior of process is influenced by [[IModelTransformOptions.argsForProcessChanges]] being defined or not defined during construction passed of the IModelTransformer.
622
+ * @section When argsForProcessChanges are defined:
623
+ *
624
+ * Export changes from the source iModel and import the transformed entities into the target iModel.
625
+ * Inserts, updates, and deletes are determined by inspecting the changeset(s).
626
+ *
627
+ * Notes:
628
+ * - the transformer assumes that you saveChanges after processing changes. You should not modify the iModel after processChanges until saveChanges,
629
+ * failure to do so may result in corrupted
630
+ * data loss in future branch operations
631
+ * - if no startChangesetId or startChangeset option is provided as part of the ProcessChangesOptions, the next unsynchronized changeset
632
+ * will automatically be determined and used
633
+ * - To form a range of versions to process, set `startChangesetId` for the start (inclusive) of the desired range and open the source iModel as of the end (inclusive) of the desired range.
634
+ *
635
+ * @section When argsForProcessChanges are undefined:
636
+ *
637
+ * Export everything from the source iModel and import the transformed entities into the target iModel.
638
+ *
639
+ * Notes:
640
+ * - [[processSchemas]] is not called automatically since the target iModel may want a different collection of schemas.
641
+ *
642
+ */
643
+ process(): Promise<void>;
682
644
  /** Export everything from the source iModel and import the transformed entities into the target iModel.
683
645
  * @note [[processSchemas]] is not called automatically since the target iModel may want a different collection of schemas.
684
646
  */
685
- processAll(options?: FinalizeTransformationOptions): Promise<void>;
647
+ private processAll;
686
648
  /** previous provenance, either a federation guid, a `${sourceFedGuid}/${targetFedGuid}` pair, or required aspect props */
687
649
  private _lastProvenanceEntityInfo;
688
650
  private markLastProvenance;
689
651
  /** Export changes from the source iModel and import the transformed entities into the target iModel.
690
652
  * Inserts, updates, and deletes are determined by inspecting the changeset(s).
691
- * @note the transformer saves and pushes changes when its work is complete.
653
+ * @note the transformer assumes that you saveChanges after processing changes. You should not
654
+ * modify the iModel after processChanges until saveChanges, failure to do so may result in corrupted
655
+ * data loss in future branch operations
692
656
  * @note if no startChangesetId or startChangeset option is provided as part of the ProcessChangesOptions, the next unsynchronized changeset
693
657
  * will automatically be determined and used
694
658
  * @note To form a range of versions to process, set `startChangesetId` for the start (inclusive) of the desired range and open the source iModel as of the end (inclusive) of the desired range.
695
659
  */
696
- processChanges(options: ProcessChangesOptions): Promise<void>;
660
+ private processChanges;
697
661
  /** Changeset data must be initialized in order to build correct changeOptions.
698
662
  * Call [[IModelTransformer.initialize]] for initialization of synchronization provenance data
699
663
  */
@@ -739,5 +703,4 @@ export declare class TemplateModelCloner extends IModelTransformer {
739
703
  /** Cloning from a template requires this override of onTransformElement. */
740
704
  onTransformElement(sourceElement: Element): ElementProps;
741
705
  }
742
- export {};
743
706
  //# sourceMappingURL=IModelTransformer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IModelTransformer.d.ts","sourceRoot":"","sources":["../../src/IModelTransformer.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,WAAW,EAOX,SAAS,EACT,UAAU,EAMX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAYL,OAAO,EACP,aAAa,EACb,kBAAkB,EAGlB,mBAAmB,EACnB,MAAM,EAGN,oBAAoB,EAKpB,QAAQ,EAKR,KAAK,EAGL,YAAY,EACZ,iBAAiB,EAOlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,mBAAmB,EAGnB,QAAQ,EAER,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,yBAAyB,EACzB,SAAS,EAIT,UAAU,EACV,WAAW,EACX,WAAW,EAMZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,oBAAoB,EAEpB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CA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