Skip to content

Commit 4fb7071

Browse files
committed
change name to addCustomChanges
1 parent 25f6611 commit 4fb7071

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/transformer/src/IModelExporter.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export class IModelExporter {
381381
* @note The transformer will have built up the remap table between the source and target iModels before calling this function. This means that functions like [[IModelTransformer.context.findTargetElementId]] will return meaningful results.
382382
* @note Its expected that this function be overridden by a subclass of exporter if it needs to modify sourceDbChanges.
383383
*/
384-
public addCustomChangesCallback(): void {}
384+
public addCustomChanges(): void {}
385385

386386
/** Register the handler that will be called by IModelExporter. */
387387
public registerHandler(handler: IModelExportHandler): void {
@@ -1227,6 +1227,15 @@ export class ChangedInstanceIds {
12271227
this.handleChange(this.element, changeType, change.ECInstanceId);
12281228
}
12291229

1230+
public addCustomElementChange(
1231+
changeType: SqliteChangeOp,
1232+
id: Id64String
1233+
): void {
1234+
// if delete unnecessary?
1235+
this.addModelToUpdated(id);
1236+
this.handleChange(this.element, changeType, id);
1237+
}
1238+
12301239
/**
12311240
* Adds the provided change to the appropriate set of changes by class type (codeSpec, model, element, aspect) maintained by this instance of ChangedInstanceIds.
12321241
* If the same ECInstanceId is seen multiple times, the changedInstanceIds will be modified accordingly, i.e. if an id 'x' was updated but now we see 'x' was deleted, we will remove 'x'

0 commit comments

Comments
 (0)