@itwin/core-backend
Version:
iTwin.js backend components
13 lines • 908 B
TypeScript
import { FieldRun, FieldValue, RelationshipProps, TextBlock } from "@itwin/core-common";
import { IModelDb } from "../../IModelDb";
import { Id64String } from "@itwin/core-bentley";
export interface UpdateFieldsContext {
readonly hostElementId: Id64String | undefined;
getProperty(field: FieldRun): FieldValue | undefined;
}
export declare function createUpdateContext(hostElementId: string | undefined, iModel: IModelDb, deleted: boolean): UpdateFieldsContext;
export declare function updateField(field: FieldRun, context: UpdateFieldsContext): boolean;
export declare function updateFields(textBlock: TextBlock, context: UpdateFieldsContext): number;
export declare function updateElementFields(props: RelationshipProps, iModel: IModelDb, deleted: boolean): void;
export declare function updateAllFields(annotationElementId: Id64String, iModel: IModelDb): void;
//# sourceMappingURL=fields.d.ts.map