50 lines
1.8 KiB
TypeScript
50 lines
1.8 KiB
TypeScript
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 {};
|