manifest
Version:
The backend for AI code editors
17 lines (16 loc) • 870 B
TypeScript
import { AuthenticableEntity, BaseEntity, DatabaseConnection } from '@repo/types';
import { EntitySchema as TypeORMEntitySchema, EntitySchemaColumnOptions } from 'typeorm';
import { RelationshipService } from './relationship.service';
import { ManifestService } from '../../manifest/services/manifest.service';
export declare class EntityLoaderService {
private manifestService;
private relationshipService;
constructor(manifestService: ManifestService, relationshipService: RelationshipService);
loadEntities(dbConnection: DatabaseConnection): TypeORMEntitySchema[];
getBaseEntityColumns(dbConnection: DatabaseConnection): {
[key in keyof BaseEntity]: EntitySchemaColumnOptions;
};
getBaseAuthenticableEntityColumns(dbConnection: DatabaseConnection): {
[key in keyof AuthenticableEntity]: EntitySchemaColumnOptions;
};
}