/** @packageDocumentation * @module Editing */ import { ECClassModifier, EntityClass, EntityClassProps, Mixin, NavigationPropertyProps, RelationshipClass, SchemaItemKey, SchemaKey, StrengthDirection } from "@itwin/ecschema-metadata"; import { SchemaContextEditor } from "./Editor"; import { ECClasses } from "./ECClasses"; import { NavigationProperties } from "./Properties"; /** * @alpha * A class extending ECClasses allowing you to create schema items of type EntityClass. */ export declare class Entities extends ECClasses { protected get itemTypeClass(): typeof EntityClass; constructor(schemaEditor: SchemaContextEditor); /** * Allows access for editing of NavigationProperty attributes. */ readonly navigationProperties: NavigationProperties; createElement(schemaKey: SchemaKey, name: string, modifier: ECClassModifier, baseClassKey: SchemaItemKey, displayLabel?: string, mixins?: Mixin[]): Promise; createElementUniqueAspect(schemaKey: SchemaKey, name: string, modifier: ECClassModifier, baseClassKey: SchemaItemKey, displayLabel?: string, mixins?: Mixin[]): Promise; createElementMultiAspect(schemaKey: SchemaKey, name: string, modifier: ECClassModifier, baseClassKey: SchemaItemKey, displayLabel?: string, mixins?: Mixin[]): Promise; create(schemaKey: SchemaKey, name: string, modifier: ECClassModifier, displayLabel?: string, baseClassKey?: SchemaItemKey, mixins?: Mixin[]): Promise; /** * Creates an EntityClass through an EntityClassProps. * @param schemaKey a SchemaKey of the Schema that will house the new object. * @param entityProps a json object that will be used to populate the new EntityClass. Needs a name value passed in. */ createFromProps(schemaKey: SchemaKey, entityProps: EntityClassProps): Promise; addMixin(entityKey: SchemaItemKey, mixinKey: SchemaItemKey): Promise; createNavigationProperty(entityKey: SchemaItemKey, name: string, relationship: string | RelationshipClass, direction: string | StrengthDirection): Promise; /** * Creates a Navigation Property through a NavigationPropertyProps. * @param classKey a SchemaItemKey of the Entity Class that will house the new property. * @param navigationProps a json object that will be used to populate the new Navigation Property. */ createNavigationPropertyFromProps(classKey: SchemaItemKey, navigationProps: NavigationPropertyProps): Promise; } //# sourceMappingURL=Entities.d.ts.map