@itwin/core-backend
Version:
iTwin.js backend components
19 lines • 1.1 kB
TypeScript
/** @packageDocumentation
* @module Schema
*/
import { ECSchemaXmlContext } from "./ECSchemaXmlContext";
/** Converts EC2 Xml ECSchema(s). On success, the `EC2 Xml schemas` are converted into `EC3.2 Xml schemas`.
* @param ec2XmlSchemas The EC2 Xml string(s) created from a serialized ECSchema.
* @returns EC3.2 Xml ECSchema(s).
* @throws [[IModelError]] if there is a problem converting the EC2 schemas.
* @beta
*/
export declare function convertEC2SchemasToEC3Schemas(ec2XmlSchemas: string[], schemaContext?: ECSchemaXmlContext): string[];
/** Converts schema metadata to EC3 concepts by traversing custom attributes of the supplied schema and calling converters based on schemaName:customAttributeName
* @param xmlSchemas The ECSchema Xml string(s).
* @returns EC3.2 Xml ECSchema(s) with converted custom attributes.
* @throws [[IModelError]] if there is a problem converting the custom attributes of a schema.
* @beta
*/
export declare function upgradeCustomAttributesToEC3(xmlSchemas: string[], schemaContext?: ECSchemaXmlContext): string[];
//# sourceMappingURL=SchemaUtils.d.ts.map