55```ts
66
77import { DistanceExpressionProps } from '@itwin/linear-referencing-common';
8+ import { EditTxn } from '@itwin/core-backend';
89import { ElementMultiAspect } from '@itwin/core-backend';
910import { ElementProps } from '@itwin/core-common';
1011import { ElementRefersToElements } from '@itwin/core-backend';
@@ -85,13 +86,17 @@ export class LinearLocation extends LinearLocationElement implements LinearlyLoc
8586 static get className(): string;
8687 // (undocumented)
8788 static create(iModel: IModelDb, modelId: Id64String, categoryId: Id64String): LinearLocation;
88- // (undocumented)
89+ static insertAt(txn: EditTxn, modelId: Id64String, categoryId: Id64String, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps, locatedElementId: Id64String): Id64String;
90+ // @deprecated
8991 static insertAt(iModel: IModelDb, modelId: Id64String, categoryId: Id64String, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps, locatedElementId: Id64String): Id64String;
90- // (undocumented)
92+ insertAt(txn: EditTxn, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps, locatedElementId: Id64String): Id64String;
93+ // @deprecated
9194 insertAt(iModel: IModelDb, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps, locatedElementId: Id64String): Id64String;
92- // (undocumented)
95+ static insertFromTo(txn: EditTxn, modelId: Id64String, categoryId: Id64String, linearElementId: Id64String, fromToPosition: LinearlyReferencedFromToLocationProps, locatedElementId: Id64String): Id64String;
96+ // @deprecated
9397 static insertFromTo(iModel: IModelDb, modelId: Id64String, categoryId: Id64String, linearElementId: Id64String, fromToPosition: LinearlyReferencedFromToLocationProps, locatedElementId: Id64String): Id64String;
94- // (undocumented)
98+ insertFromTo(txn: EditTxn, linearElementId: Id64String, fromToPosition: LinearlyReferencedFromToLocationProps, locatedElementId: Id64String): Id64String;
99+ // @deprecated
95100 insertFromTo(iModel: IModelDb, linearElementId: Id64String, fromToPosition: LinearlyReferencedFromToLocationProps, locatedElementId: Id64String): Id64String;
96101}
97102
@@ -111,10 +116,20 @@ export class LinearlyLocated {
111116 static getFromToLocation(iModel: IModelDb, linearlyLocatedElementId: Id64String): LinearlyReferencedFromToLocation | undefined;
112117 static getFromToLocations(iModel: IModelDb, linearlyLocatedElementId: Id64String): LinearlyReferencedFromToLocation[];
113118 static getLinearElementId(iModel: IModelDb, linearlyLocatedElementId: Id64String): Id64String | undefined;
119+ static insertAt(txn: EditTxn, elProps: ElementProps, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps): Id64String;
120+ // @deprecated
114121 static insertAt(iModel: IModelDb, elProps: ElementProps, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps): Id64String;
122+ static insertFromTo(txn: EditTxn, elProps: ElementProps, linearElementId: Id64String, fromToPosition: LinearlyReferencedFromToLocationProps): Id64String;
123+ // @deprecated
115124 static insertFromTo(iModel: IModelDb, elProps: ElementProps, linearElementId: Id64String, fromToPosition: LinearlyReferencedFromToLocationProps): Id64String;
125+ // @deprecated
116126 static updateAtLocation(iModel: IModelDb, linearlyLocatedElementId: Id64String, linearLocationProps: LinearlyReferencedAtLocationProps, aspectId?: Id64String): void;
127+ // (undocumented)
128+ static updateAtLocation(txn: EditTxn, linearlyLocatedElementId: Id64String, linearLocationProps: LinearlyReferencedAtLocationProps, aspectId?: Id64String): void;
129+ // @deprecated
117130 static updateFromToLocation(iModel: IModelDb, linearlyLocatedElementId: Id64String, linearLocationProps: LinearlyReferencedFromToLocationProps, aspectId?: Id64String): void;
131+ // (undocumented)
132+ static updateFromToLocation(txn: EditTxn, linearlyLocatedElementId: Id64String, linearLocationProps: LinearlyReferencedFromToLocationProps, aspectId?: Id64String): void;
118133}
119134
120135// @beta
@@ -177,7 +192,8 @@ export class LinearlyReferencedAtLocation extends LinearlyReferencedLocation {
177192 static create(iModel: IModelDb, locatedElementId: Id64String, at: DistanceExpression, fromReferentId?: Id64String): LinearlyReferencedAtLocation;
178193 // (undocumented)
179194 fromReferent?: LinearlyReferencedAtPositionRefersToReferent;
180- // (undocumented)
195+ static insert(txn: EditTxn, locatedElementId: Id64String, at: DistanceExpression, fromReferentId?: Id64String): void;
196+ // @deprecated
181197 static insert(iModel: IModelDb, locatedElementId: Id64String, at: DistanceExpression, fromReferentId?: Id64String): void;
182198}
183199
@@ -206,7 +222,8 @@ export class LinearlyReferencedFromToLocation extends LinearlyReferencedLocation
206222 fromPosition: DistanceExpression;
207223 // (undocumented)
208224 fromPositionFromReferent?: LinearlyReferencedFromPositionRefersToReferent;
209- // (undocumented)
225+ static insert(txn: EditTxn, locatedElementId: Id64String, from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void;
226+ // @deprecated
210227 static insert(iModel: IModelDb, locatedElementId: Id64String, from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void;
211228 // (undocumented)
212229 toPosition: DistanceExpression;
@@ -250,9 +267,11 @@ export class Referent extends ReferentElement {
250267 static get className(): string;
251268 // (undocumented)
252269 static create(iModel: IModelDb, modelId: Id64String, categoryId: Id64String, referencedElementId: Id64String): Referent;
253- // (undocumented)
270+ static insertAt(txn: EditTxn, modelId: Id64String, categoryId: Id64String, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps, referencedElementId: Id64String): Id64String;
271+ // @deprecated
254272 static insertAt(iModel: IModelDb, modelId: Id64String, categoryId: Id64String, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps, referencedElementId: Id64String): Id64String;
255- // (undocumented)
273+ insertAt(txn: EditTxn, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps): Id64String;
274+ // @deprecated
256275 insertAt(iModel: IModelDb, linearElementId: Id64String, atPosition: LinearlyReferencedAtLocationProps): Id64String;
257276}
258277
0 commit comments