@itwin/imodel-transformer 0.3.2-dev.0 → 0.3.18-fedguidopt.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -9
- package/lib/cjs/Algo.d.ts +7 -0
- package/lib/cjs/Algo.d.ts.map +1 -0
- package/lib/cjs/Algo.js +50 -0
- package/lib/cjs/Algo.js.map +1 -0
- package/lib/cjs/BranchProvenanceInitializer.d.ts +10 -3
- package/lib/cjs/BranchProvenanceInitializer.d.ts.map +1 -1
- package/lib/cjs/BranchProvenanceInitializer.js +82 -10
- package/lib/cjs/BranchProvenanceInitializer.js.map +1 -1
- package/lib/cjs/IModelCloneContext.d.ts.map +1 -1
- package/lib/cjs/IModelCloneContext.js +0 -2
- package/lib/cjs/IModelCloneContext.js.map +1 -1
- package/lib/cjs/IModelExporter.d.ts +31 -8
- package/lib/cjs/IModelExporter.d.ts.map +1 -1
- package/lib/cjs/IModelExporter.js +81 -35
- package/lib/cjs/IModelExporter.js.map +1 -1
- package/lib/cjs/IModelTransformer.d.ts +162 -28
- package/lib/cjs/IModelTransformer.d.ts.map +1 -1
- package/lib/cjs/IModelTransformer.js +917 -261
- package/lib/cjs/IModelTransformer.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessToken, Id64String } from "@itwin/core-bentley";
|
|
1
|
+
import { AccessToken, Id64Array, Id64String } from "@itwin/core-bentley";
|
|
2
2
|
import * as ECSchemaMetaData from "@itwin/ecschema-metadata";
|
|
3
3
|
import { Element, ElementAspect, ElementMultiAspect, ElementUniqueAspect, Entity, IModelDb, Model, Relationship, RelationshipProps, SQLiteDb } from "@itwin/core-backend";
|
|
4
4
|
import { CodeSpec, ElementAspectProps, ElementProps, EntityReference, EntityReferenceSet, ExternalSourceAspectProps, FontProps, ModelProps, Placement2d, Placement3d } from "@itwin/core-common";
|
|
@@ -13,7 +13,8 @@ import { IModelCloneContext } from "./IModelCloneContext";
|
|
|
13
13
|
*/
|
|
14
14
|
export interface IModelTransformOptions {
|
|
15
15
|
/** The Id of the Element in the **target** iModel that represents the **source** repository as a whole and scopes its [ExternalSourceAspect]($backend) instances.
|
|
16
|
-
*
|
|
16
|
+
* It is always a good idea to define this, although particularly necessary in any multi-source scenario such as multiple branches that reverse synchronize
|
|
17
|
+
* or physical consolidation.
|
|
17
18
|
*/
|
|
18
19
|
targetScopeElementId?: Id64String;
|
|
19
20
|
/** Set to `true` if IModelTransformer should not record its provenance.
|
|
@@ -100,6 +101,28 @@ export interface IModelTransformOptions {
|
|
|
100
101
|
* @beta
|
|
101
102
|
*/
|
|
102
103
|
optimizeGeometry?: OptimizeGeometryOptions;
|
|
104
|
+
/**
|
|
105
|
+
* force the insertion of external source aspects to provide provenance, even if there are federation guids
|
|
106
|
+
* in the source that we can use. This can make some operations (like transforming new elements or initializing forks)
|
|
107
|
+
* much slower due to needing to insert aspects, but prevents requiring change information for future merges.
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
forceExternalSourceAspectProvenance?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Do not detach the change cache that we build. Use this if you want to do multiple transformations to
|
|
113
|
+
* the same iModels, to avoid the performance cost of reinitializing the change cache which can be
|
|
114
|
+
* expensive. You should only use this if you know the cache will be reused.
|
|
115
|
+
* @note You must detach the change cache yourself.
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
noDetachChangeCache?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Do not check that processChanges is called from the next changeset index.
|
|
121
|
+
* This is an unsafe option (e.g. it can cause data loss in future branch operations)
|
|
122
|
+
* and you should not use it.
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
ignoreMissingChangesetsInSynchronizations?: boolean;
|
|
103
126
|
}
|
|
104
127
|
/**
|
|
105
128
|
* A container for tracking the state of a partially committed entity and finalizing it when it's ready to be fully committed
|
|
@@ -123,10 +146,10 @@ declare class PartiallyCommittedEntity {
|
|
|
123
146
|
resolveReference(id: EntityReference): void;
|
|
124
147
|
forceComplete(): void;
|
|
125
148
|
}
|
|
126
|
-
/** Arguments you can pass to [[IModelTransformer.
|
|
149
|
+
/** Arguments you can pass to [[IModelTransformer.initialize]]
|
|
127
150
|
* @beta
|
|
128
151
|
*/
|
|
129
|
-
export interface
|
|
152
|
+
export interface InitOptions {
|
|
130
153
|
accessToken?: AccessToken;
|
|
131
154
|
/**
|
|
132
155
|
* Include changes from this changeset up through and including the current changeset.
|
|
@@ -144,6 +167,10 @@ export interface InitFromExternalSourceAspectsArgs {
|
|
|
144
167
|
*/
|
|
145
168
|
export interface ProcessChangesOptions extends ExportChangesOptions {
|
|
146
169
|
}
|
|
170
|
+
/** Arguments you can pass to [[IModelTransformer.initExternalSourceAspects]]
|
|
171
|
+
* @deprecated in 0.1.0. Use [[InitOptions]] (and [[IModelTransformer.initialize]]) instead.
|
|
172
|
+
*/
|
|
173
|
+
export type InitFromExternalSourceAspectsArgs = InitOptions;
|
|
147
174
|
/** Base class used to transform a source iModel into a different target iModel.
|
|
148
175
|
* @see [iModel Transformation and Data Exchange]($docs/learning/transformer/index.md), [IModelExporter]($transformer), [IModelImporter]($transformer)
|
|
149
176
|
* @beta
|
|
@@ -166,10 +193,16 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
166
193
|
/** map of (unprocessed element, referencing processed element) pairs to the partially committed element that needs the reference resolved
|
|
167
194
|
* and have some helper methods below for now */
|
|
168
195
|
protected _pendingReferences: PendingReferenceMap<PartiallyCommittedEntity>;
|
|
196
|
+
/** a set of elements for which source provenance will be explicitly tracked by ExternalSourceAspects */
|
|
197
|
+
protected _elementsWithExplicitlyTrackedProvenance: Set<string>;
|
|
169
198
|
/** map of partially committed entities to their partial commit progress */
|
|
170
199
|
protected _partiallyCommittedEntities: EntityMap<PartiallyCommittedEntity>;
|
|
171
200
|
/** the options that were used to initialize this transformer */
|
|
172
201
|
private readonly _options;
|
|
202
|
+
private _isSynchronization;
|
|
203
|
+
private get _isReverseSynchronization();
|
|
204
|
+
private get _isForwardSynchronization();
|
|
205
|
+
private _changesetRanges;
|
|
173
206
|
/** Set if it can be determined whether this is the first source --> target synchronization. */
|
|
174
207
|
private _isFirstSynchronization?;
|
|
175
208
|
/** The element classes that are considered to define provenance in the iModel */
|
|
@@ -204,6 +237,20 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
204
237
|
isReverseSynchronization: boolean;
|
|
205
238
|
targetScopeElementId: Id64String;
|
|
206
239
|
}): ExternalSourceAspectProps;
|
|
240
|
+
static initRelationshipProvenanceOptions(sourceRelInstanceId: Id64String, targetRelInstanceId: Id64String, args: {
|
|
241
|
+
sourceDb: IModelDb;
|
|
242
|
+
targetDb: IModelDb;
|
|
243
|
+
isReverseSynchronization: boolean;
|
|
244
|
+
targetScopeElementId: Id64String;
|
|
245
|
+
forceOldRelationshipProvenanceMethod: boolean;
|
|
246
|
+
}): ExternalSourceAspectProps;
|
|
247
|
+
/**
|
|
248
|
+
* Previously the transformer would insert provenance always pointing to the "target" relationship.
|
|
249
|
+
* It should (and now by default does) instead insert provenance pointing to the provenanceSource
|
|
250
|
+
* SEE: https://github.com/iTwin/imodel-transformer/issues/54
|
|
251
|
+
* This exists only to facilitate testing that the transformer can handle the older, flawed method
|
|
252
|
+
*/
|
|
253
|
+
private _forceOldRelationshipProvenanceMethod;
|
|
207
254
|
/** Create an ExternalSourceAspectProps in a standard way for an Element in an iModel --> iModel transformation. */
|
|
208
255
|
private initElementProvenance;
|
|
209
256
|
/** Create an ExternalSourceAspectProps in a standard way for a Relationship in an iModel --> iModel transformations.
|
|
@@ -212,9 +259,38 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
212
259
|
* The ECInstanceId of the relationship in the target iModel will be stored in the JsonProperties of the ExternalSourceAspect.
|
|
213
260
|
*/
|
|
214
261
|
private initRelationshipProvenance;
|
|
215
|
-
|
|
216
|
-
private
|
|
217
|
-
/**
|
|
262
|
+
/** NOTE: the json properties must be converted to string before insertion */
|
|
263
|
+
private _targetScopeProvenanceProps;
|
|
264
|
+
/**
|
|
265
|
+
* Index of the changeset that the transformer was at when the transformation begins (was constructed).
|
|
266
|
+
* Used to determine at the end which changesets were part of a synchronization.
|
|
267
|
+
*/
|
|
268
|
+
private _startingChangesetIndices;
|
|
269
|
+
private _cachedSynchronizationVersion;
|
|
270
|
+
/** the changeset in the scoping element's source version found for this transformation
|
|
271
|
+
* @note: the version depends on whether this is a reverse synchronization or not, as
|
|
272
|
+
* it is stored separately for both synchronization directions
|
|
273
|
+
* @note: empty string and -1 for changeset and index if it has never been transformed
|
|
274
|
+
*/
|
|
275
|
+
private get _synchronizationVersion();
|
|
276
|
+
/**
|
|
277
|
+
* Make sure there are no conflicting other scope-type external source aspects on the *target scope element*,
|
|
278
|
+
* If there are none at all, insert one, then this must be a first synchronization.
|
|
279
|
+
* @returns the last synced version (changesetId) on the target scope's external source aspect,
|
|
280
|
+
* if this was a [BriefcaseDb]($backend)
|
|
281
|
+
*/
|
|
282
|
+
private initScopeProvenance;
|
|
283
|
+
/**
|
|
284
|
+
* @returns the id and version of an aspect with the given element, scope, kind, and identifier
|
|
285
|
+
* May also return a reverseSyncVersion from json properties if requested
|
|
286
|
+
*/
|
|
287
|
+
private queryScopeExternalSource;
|
|
288
|
+
/**
|
|
289
|
+
* Iterate all matching federation guids and ExternalSourceAspects in the provenance iModel (target unless reverse sync)
|
|
290
|
+
* and call a function for each one.
|
|
291
|
+
* @note provenance is done by federation guids where possible
|
|
292
|
+
* @note this may execute on each element more than once! Only use in cases where that is handled
|
|
293
|
+
*/
|
|
218
294
|
static forEachTrackedElement(args: {
|
|
219
295
|
provenanceSourceDb: IModelDb;
|
|
220
296
|
provenanceDb: IModelDb;
|
|
@@ -229,19 +305,30 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
229
305
|
* @note Passing an [[InitFromExternalSourceAspectsArgs]] is required when processing changes, to remap any elements that may have been deleted.
|
|
230
306
|
* You must await the returned promise as well in this case. The synchronous behavior has not changed but is deprecated and won't process everything.
|
|
231
307
|
*/
|
|
232
|
-
initFromExternalSourceAspects(args?:
|
|
233
|
-
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*/
|
|
237
|
-
private
|
|
308
|
+
initFromExternalSourceAspects(args?: InitOptions): void | Promise<void>;
|
|
309
|
+
/**
|
|
310
|
+
* Scan changesets for deleted entities, if in a reverse synchronization, provenance has
|
|
311
|
+
* already been deleted, so we must scan for that as well.
|
|
312
|
+
*/
|
|
313
|
+
private remapDeletedSourceEntities;
|
|
314
|
+
private _queryProvenanceForElement;
|
|
315
|
+
private _queryProvenanceForRelationship;
|
|
316
|
+
private _queryTargetRelId;
|
|
317
|
+
private _targetClassNameToClassIdCache;
|
|
318
|
+
private _targetClassNameToClassId;
|
|
319
|
+
private _getRelClassId;
|
|
320
|
+
private _queryElemIdByFedGuid;
|
|
238
321
|
/** Returns `true` if *brute force* delete detections should be run.
|
|
239
322
|
* @note Not relevant for processChanges when change history is known.
|
|
240
323
|
*/
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
*
|
|
324
|
+
private shouldDetectDeletes;
|
|
325
|
+
/**
|
|
326
|
+
* Detect Element deletes using ExternalSourceAspects in the target iModel and a *brute force* comparison against Elements
|
|
327
|
+
* in the source iModel.
|
|
328
|
+
* @deprecated in 0.1.x. This method is only called during [[processAll]] when the option
|
|
329
|
+
* [[IModelTransformerOptions.forceExternalSourceAspectProvenance]] is enabled. It is not
|
|
330
|
+
* necessary when using [[processChanges]] since changeset information is sufficient.
|
|
331
|
+
* @note you do not need to call this directly unless processing a subset of an iModel.
|
|
245
332
|
* @throws [[IModelError]] If the required provenance information is not available to detect deletes.
|
|
246
333
|
*/
|
|
247
334
|
detectElementDeletes(): Promise<void>;
|
|
@@ -256,12 +343,15 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
256
343
|
* @note This can be called more than once for an element in arbitrary order, so it should not have side-effects.
|
|
257
344
|
*/
|
|
258
345
|
onTransformElement(sourceElement: Element): ElementProps;
|
|
346
|
+
private _hasElementChangedCache?;
|
|
347
|
+
private _deletedSourceRelationshipData?;
|
|
348
|
+
private _cacheSourceChanges;
|
|
259
349
|
/** Returns true if a change within sourceElement is detected.
|
|
260
350
|
* @param sourceElement The Element from the source iModel
|
|
261
351
|
* @param targetElementId The Element from the target iModel to compare against.
|
|
262
352
|
* @note A subclass can override this method to provide custom change detection behavior.
|
|
263
353
|
*/
|
|
264
|
-
protected hasElementChanged(sourceElement: Element,
|
|
354
|
+
protected hasElementChanged(sourceElement: Element, _targetElementId: Id64String): boolean;
|
|
265
355
|
private static transformCallbackFor;
|
|
266
356
|
/** callback to perform when a partial element says it's ready to be completed
|
|
267
357
|
* transforms the source element with all references now valid, then updates the partial element with the results
|
|
@@ -307,8 +397,6 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
307
397
|
onExportModel(sourceModel: Model): void;
|
|
308
398
|
/** Override of [IModelExportHandler.onDeleteModel]($transformer) that is called when [IModelExporter]($transformer) detects that a [Model]($backend) has been deleted from the source iModel. */
|
|
309
399
|
onDeleteModel(sourceModelId: Id64String): void;
|
|
310
|
-
/** Schedule modeled partition deletion */
|
|
311
|
-
private scheduleModeledPartitionDeletion;
|
|
312
400
|
/** Cause the model container, contents, and sub-models to be exported from the source iModel and imported into the target iModel.
|
|
313
401
|
* @param sourceModeledElementId Import this [Model]($backend) from the source IModelDb.
|
|
314
402
|
* @note This method is called from [[processChanges]] and [[processAll]], so it only needs to be called directly when processing a subset of an iModel.
|
|
@@ -334,6 +422,19 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
334
422
|
* @deprecated in 3.x. This method is no longer necessary since the transformer no longer needs to defer elements
|
|
335
423
|
*/
|
|
336
424
|
processDeferredElements(_numRetries?: number): Promise<void>;
|
|
425
|
+
/** called at the end ([[finalizeTransformation]]) of a transformation,
|
|
426
|
+
* updates the target scope element to say that transformation up through the
|
|
427
|
+
* source's changeset has been performed. Also stores all changesets that occurred
|
|
428
|
+
* during the transformation as "pending synchronization changeset indices"
|
|
429
|
+
*
|
|
430
|
+
* You generally should not call this function yourself and use [[processChanges]] instead.
|
|
431
|
+
* It is public for unsupported use cases of custom synchronization transforms.
|
|
432
|
+
* @note if you are not running processChanges in this transformation, this will fail
|
|
433
|
+
* without setting the `force` option to `true`
|
|
434
|
+
*/
|
|
435
|
+
updateSynchronizationVersion({ force }?: {
|
|
436
|
+
force?: boolean | undefined;
|
|
437
|
+
}): void;
|
|
337
438
|
private finalizeTransformation;
|
|
338
439
|
/** Imports all relationships that subclass from the specified base class.
|
|
339
440
|
* @param baseRelClassFullName The specified base relationship class.
|
|
@@ -354,6 +455,7 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
354
455
|
onDeleteRelationship(sourceRelInstanceId: Id64String): void;
|
|
355
456
|
private _yieldManager;
|
|
356
457
|
/** Detect Relationship deletes using ExternalSourceAspects in the target iModel and a *brute force* comparison against relationships in the source iModel.
|
|
458
|
+
* @deprecated
|
|
357
459
|
* @see processChanges
|
|
358
460
|
* @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.
|
|
359
461
|
* @throws [[IModelError]] If the required provenance information is not available to detect deletes.
|
|
@@ -427,17 +529,22 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
427
529
|
processSubject(sourceSubjectId: Id64String, targetSubjectId: Id64String): Promise<void>;
|
|
428
530
|
/** state to prevent reinitialization, @see [[initialize]] */
|
|
429
531
|
private _initialized;
|
|
532
|
+
/** length === 0 when _changeDataState = "no-change", length > 0 means "has-changes", otherwise undefined */
|
|
533
|
+
private _changeSummaryIds?;
|
|
534
|
+
private _sourceChangeDataState;
|
|
430
535
|
/**
|
|
431
|
-
* Initialize prerequisites of processing, you must initialize with an [[
|
|
432
|
-
* are intending process changes, but prefer using [[processChanges]]
|
|
433
|
-
* Called by all `process*` functions implicitly.
|
|
536
|
+
* Initialize prerequisites of processing, you must initialize with an [[InitOptions]] if you
|
|
537
|
+
* are intending to process changes, but prefer using [[processChanges]] explicitly since it calls this.
|
|
538
|
+
* @note Called by all `process*` functions implicitly.
|
|
434
539
|
* Overriders must call `super.initialize()` first
|
|
435
540
|
*/
|
|
436
|
-
initialize(args?:
|
|
541
|
+
initialize(args?: InitOptions): Promise<void>;
|
|
542
|
+
private _tryInitChangesetData;
|
|
437
543
|
/** Export everything from the source iModel and import the transformed entities into the target iModel.
|
|
438
544
|
* @note [[processSchemas]] is not called automatically since the target iModel may want a different collection of schemas.
|
|
439
545
|
*/
|
|
440
546
|
processAll(): Promise<void>;
|
|
547
|
+
/** previous provenance, either a federation guid, a `${sourceFedGuid}/${targetFedGuid}` pair, or required aspect props */
|
|
441
548
|
private _lastProvenanceEntityInfo;
|
|
442
549
|
private markLastProvenance;
|
|
443
550
|
/** @internal the name of the table where javascript state of the transformer is serialized in transformer state dumps */
|
|
@@ -452,6 +559,9 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
452
559
|
*/
|
|
453
560
|
protected loadStateFromDb(db: SQLiteDb): void;
|
|
454
561
|
/**
|
|
562
|
+
* @deprecated in 0.1.x, this is buggy, and it is now equivalently efficient to simply restart the transformation
|
|
563
|
+
* from the original changeset
|
|
564
|
+
*
|
|
455
565
|
* Return a new transformer instance with the same remappings state as saved from a previous [[IModelTransformer.saveStateToFile]] call.
|
|
456
566
|
* This allows you to "resume" an iModel transformation, you will have to call [[IModelTransformer.processChanges]]/[[IModelTransformer.processAll]]
|
|
457
567
|
* again but the remapping state will cause already mapped elements to be skipped.
|
|
@@ -481,6 +591,9 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
481
591
|
*/
|
|
482
592
|
protected saveStateToDb(db: SQLiteDb): void;
|
|
483
593
|
/**
|
|
594
|
+
* @deprecated in 0.1.x, this is buggy, and it is now equivalently efficient to simply restart the transformation
|
|
595
|
+
* from the original changeset
|
|
596
|
+
*
|
|
484
597
|
* Save the state of the active transformation to a file path, if a file at the path already exists, it will be overwritten
|
|
485
598
|
* This state can be used by [[IModelTransformer.resumeTransformation]] to resume a transformation from this point.
|
|
486
599
|
* The serialization format is a custom sqlite database.
|
|
@@ -491,12 +604,33 @@ export declare class IModelTransformer extends IModelExportHandler {
|
|
|
491
604
|
*/
|
|
492
605
|
saveStateToFile(nativeStatePath: string): void;
|
|
493
606
|
/** Export changes from the source iModel and import the transformed entities into the target iModel.
|
|
494
|
-
*
|
|
495
|
-
*
|
|
607
|
+
* Inserts, updates, and deletes are determined by inspecting the changeset(s).
|
|
608
|
+
* @note the transformer assumes that you saveChanges after processing changes. You should not
|
|
609
|
+
* modify the iModel after processChanges until saveChanges, failure to do so may result in corrupted
|
|
610
|
+
* data loss in future branch operations
|
|
611
|
+
* @param accessToken A valid access token string
|
|
612
|
+
* @param startChangesetId Include changes from this changeset up through and including the current changeset.
|
|
613
|
+
* @note if no startChangesetId or startChangeset option is provided, the next unsynchronized changeset
|
|
614
|
+
* will automatically be determined and used
|
|
615
|
+
* @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.
|
|
616
|
+
*/
|
|
617
|
+
processChanges(options: ProcessChangesOptions): Promise<void>;
|
|
618
|
+
/**
|
|
619
|
+
* @deprecated in 0.1.x, use a single [[ProcessChangesOptions]] object instead
|
|
620
|
+
* This overload follows the older behavior of defaulting an undefined startChangesetId to the
|
|
621
|
+
* current changeset.
|
|
496
622
|
*/
|
|
497
|
-
processChanges(args: ProcessChangesOptions): Promise<void>;
|
|
498
|
-
/** @deprecated in 0.1.x, use a single [[ProcessChangesOptions]] object instead */
|
|
499
623
|
processChanges(accessToken: AccessToken, startChangesetId?: string): Promise<void>;
|
|
624
|
+
/** Changeset data must be initialized in order to build correct changeOptions.
|
|
625
|
+
* Call [[IModelTransformer.initialize]] for initialization of synchronization provenance data
|
|
626
|
+
*/
|
|
627
|
+
private getExportInitOpts;
|
|
628
|
+
/** Combine an array of source elements into a single target element.
|
|
629
|
+
* All source and target elements must be created before calling this method.
|
|
630
|
+
* The "combine" operation is a remap and no properties from the source elements will be exported into the target
|
|
631
|
+
* and provenance will be explicitly tracked by ExternalSourceAspects
|
|
632
|
+
*/
|
|
633
|
+
combineElements(sourceElementIds: Id64Array, targetElementId: Id64String): void;
|
|
500
634
|
}
|
|
501
635
|
/** IModelTransformer that clones the contents of a template model.
|
|
502
636
|
* @beta
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IModelTransformer.d.ts","sourceRoot":"","sources":["../../src/IModelTransformer.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"IModelTransformer.d.ts","sourceRoot":"","sources":["../../src/IModelTransformer.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,WAAW,EAA+D,SAAS,EAAE,UAAU,EAEhG,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAEuI,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAC7J,mBAAmB,EAAE,MAAM,EACF,QAAQ,EAAuE,KAAK,EAC7G,YAAY,EAAE,iBAAiB,EAAU,QAAQ,EAC3E,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAC+C,QAAQ,EAAuB,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,kBAAkB,EACxJ,yBAAyB,EAAE,SAAS,EAA8C,UAAU,EAC5F,WAAW,EAAE,WAAW,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAuB,kBAAkB,EAAE,cAAc,EAAuB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC3J,OAAO,EAAE,cAAc,EAAuB,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhG,OAAO,EAAoB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAa,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