import { TreeNode } from "@farris/ui-treetable"; import { NewEntitySet, NewEntityType, NewSchema } from "../common/NewSchema"; import { EntitySet, EntityType, Schema } from "../common/Schema"; import { VarEntity } from "../common/ExpressEntity"; import { CheckContext } from "./CheckExpress"; export declare class Table { tableName: string; name: string; properties: Property[]; parent: string; } declare class Property { code: string; name: string; type: string; } /** * 构造变量(上下文和会话) * @description 校验上下文构造上下文变量和会话变量 * @param context 校验上下文 * @param contexts 上下文变量 * @param sessions 会话变量 */ export declare function buildVariable(context: CheckContext, contexts: VarEntity[], sessions: VarEntity[]): void; /** * 构造数据模型(NewSchema) * @param context * @param newSchemaMap * @param injectedEntities */ export declare function buildNewSchemaEntityStruct(context: CheckContext, newSchemaMap: any, injectedEntities: any): void; /** * 构造数据模型(Schema) * @param entityStructs * @param schemaMap * @param injectedEntities */ export declare function buildSchemaEntityStruct(context: CheckContext, schemaMap: any, injectedEntities: any): void; export declare class SchemaToStructUtils { private static oldNumber; private static newNumber; /** * @description 初始化NewSchema */ static onInitNewSchema(newSchemaMap: any, injectedEntities: any, i18nTypes?: Map): TreeNode[]; /** * @description 转换实体类型(EntityType) * @param entityType * @param schema * @param navigatorMap1 * @returns */ static convertNewEntityType(type: NewEntityType, schema: NewSchema, navigatorMap1: any, customSchemaName: any, i18nTypes: Map): TreeNode; /** * @description 转换实体集(EntitySet) * @param set * @param schema * @param navigatorMap1 * @returns */ static convertNewEntitySet(set: NewEntitySet, schema: NewSchema, navigatorMap1: any, customSchemaName: any, i18nTypes: Map): TreeNode; static convertNewEntityEnum(type: NewEntityType, schema: NewSchema, navigatorMap1: any, customSchemaName: any, i18nTypes: Map): TreeNode; static getTypeDescription(dataType: any, i18nTypes: Map): any; static toType(dataType: any): any; static OnInitSchema(schemaMap: any, injectedEntities: any, i18nTypes?: Map): TreeNode[]; static ConvertEntityType(type: EntityType, schema: Schema, navigatorMap1: any, customSchemaName: any, i18nTypes: Map): TreeNode; static ConvertEntitySet(set: EntitySet, schema: Schema, navigatorMap1: any, customSchemaName: any, i18nTypes: Map): TreeNode; static ConvertEntityEnum(enum1: EntityType, schema: Schema, navigatorMap1: any, customSchemaName: any, i18nTypes: Map): TreeNode; } export {};