@flavoai/fastfold
Version:
Zero-boilerplate backend for React apps with auto-generated CRUD and declarative security
67 lines • 2.03 kB
TypeScript
export * from './types';
export { Security, SecurityEnforcer } from './security';
export { createDatabaseAdapter, DatabaseAdapters } from './database/adapters';
export { FastfoldServer, createFastfoldServer } from './server';
export { CrudGenerator } from './crud/generator';
import { DrizzleQuickStartConfig, LegacyQuickStartConfig } from './types';
import { Security } from './security';
/**
* Main Fastfold class for easy setup
*/
export declare class Fastfold {
static Security: typeof Security;
/**
* Quick start with Drizzle integration (new primary API)
*/
static quickStart(config: DrizzleQuickStartConfig, port?: number): Promise<any>;
/**
* Quick start with legacy table definitions (backward compatibility)
*/
static quickStart(config: LegacyQuickStartConfig, port?: number): Promise<any>;
/**
* Start server with Drizzle integration
*/
private static startWithDrizzle;
/**
* Legacy start method for backward compatibility
*/
private static startLegacy;
/**
* Create FastfoldServer with Drizzle adapter
*/
private static createDrizzleServer;
/**
* Generate HTML docs for Drizzle system
*/
private static generateDrizzleDocs;
/**
* Generate JSON docs for Drizzle system
*/
private static generateDrizzleDocsJson;
/**
* Extract schema from Drizzle table definition
*/
private static extractDrizzleSchema;
/**
* Get mock table schema for demo purposes
*/
private static getMockTableSchema;
/**
* Map Drizzle data types to simple types
*/
private static mapDrizzleType;
/**
* Generate endpoints documentation for a table
*/
private static generateDrizzleEndpoints;
/**
* Convert schema to JSON Schema format
*/
private static schemaToJsonSchema;
/**
* Get security description
*/
private static getSecurityDescription;
}
export default Fastfold;
//# sourceMappingURL=index.d.ts.map