oak-domain/lib/compiler/schemalBuilder.d.ts

50 lines
1.8 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import * as ts from 'typescript';
declare const Schema: Record<string, {
schemaAttrs: Array<ts.PropertySignature>;
fulltextIndex?: true;
indexes?: ts.ArrayLiteralExpression;
sourceFile: ts.SourceFile;
enumAttributes: Record<string, string[]>;
locale: ts.ObjectLiteralExpression;
toModi: boolean;
toLog: boolean;
actionType: string;
static: boolean;
inModi: boolean;
relations: false | string[];
extendsFrom: string[];
importAttrFrom: Record<string, [string, string | undefined, string, string]>;
}>;
export declare function constructAttributes(entity: string): ts.PropertyAssignment[];
export declare function translateLocaleObject(locale: ts.ObjectLiteralExpression): Record<string, any>;
/**
* 此函数不再使用
* @param map
*/
export declare function registerIgnoredForeignKeyMap(map: Record<string, string[]>): void;
/**
* 此函数不再使用
* @param map
*/
export declare function registerFreeEntities(selectFreeEntities?: string[], createFreeEntities?: string[], updateFreeEntities?: string[]): void;
/**
* 此函数不再使用
* @param map
*/
export declare function registerIgnoredRelationPathMap(map: Record<string, string[]>): void;
/**
* 很多路径虽然最后指向同一对象但不能封掉封了会导致查询的时候找不到对应的路径path
* @param map
*/
export declare function registerFixedDestinationPathMap(map: Record<string, string[]>): void;
/**
* 此函数不再使用
* @param map
*/
export declare function registerDeducedRelationMap(map: Record<string, string>): void;
export declare const getAnalizedSchema: () => typeof Schema;
export declare function analyzeEntities(inputDir: string, relativePath?: string): void;
export declare function getProjectionKeys(entity: string): string[];
export declare function buildSchema(outputDir: string): void;
export {};