UNPKG

@itwin/ecschema-metadata

Version:

ECObjects core concepts in typescript

60 lines 2.62 kB
import { ClassProps, CustomAttributeClassProps, MixinProps, RelationshipClassProps } from "../Deserialization/JsonProps"; import { SchemaItemParser } from "./SchemaItemParsers"; /** * Parses ClassProps JSON returned from an ECSql query and returns the correct ClassProps JSON. * This is necessary as a small amount information (ie. CustomAttribute data) returned from the * iModelDb is in a different format than is required for a ClassProps JSON object. * @internal */ export declare class ClassParser extends SchemaItemParser { /** * Parses the given ClassProps JSON returned from an ECSql query. * @param data The ClassProps JSON as returned from an iModelDb. * @returns The corrected ClassProps Json. */ parse(data: ClassProps): Promise<ClassProps>; private parseProperties; } /** * Parses the given MixinProps JSON returned from an ECSql query. * @param data The MixinProps JSON as returned from an iModelDb. * @returns The corrected MixinProps Json. * @internal */ export declare class MixinParser extends ClassParser { /** * Parses the given MixinProps JSON returned from an ECSql query. * @param data The MixinProps JSON as returned from an iModelDb. * @returns The corrected MixinProps Json. */ parse(data: MixinProps): Promise<MixinProps>; } /** * Parses the given CustomAttributeClassProps JSON returned from an ECSql query. * @param data The CustomAttributeClassProps JSON as returned from an iModelDb. * @returns The corrected CustomAttributeClassProps Json. * @internal */ export declare class CustomAttributeClassParser extends ClassParser { /** * Parses the given CustomAttributeClassProps JSON returned from an ECSql query. * @param data The CustomAttributeClassProps JSON as returned from an iModelDb. * @returns The corrected CustomAttributeClassProps Json. */ parse(data: CustomAttributeClassProps): Promise<CustomAttributeClassProps>; } /** * Parses the given RelationshipClassProps JSON returned from an ECSql query. * @param data The RelationshipClassProps JSON as returned from an iModelDb. * @returns The corrected RelationshipClassProps Json. * @internal */ export declare class RelationshipClassParser extends ClassParser { /** * Parses the given RelationshipClassProps JSON returned from an ECSql query. * @param data The RelationshipClassProps JSON as returned from an iModelDb. * @returns The corrected RelationshipClassProps Json. */ parse(data: RelationshipClassProps): Promise<RelationshipClassProps>; } //# sourceMappingURL=ClassParsers.d.ts.map