@api-buddy/types
Version:
Shared types for API Buddy
45 lines • 1.6 kB
TypeScript
/**
* API Buddy Shared Types
*
* This is the main entry point for all shared types used across the API Buddy ecosystem.
* All types are re-exported from their respective modules to avoid circular dependencies.
*/
export * from './types.js';
export * from './adapters/index.js';
export type { BaseAdapter, AdapterType, AdapterConfig, AuthAdapter, AuthSession, UserProfile, DatabaseAdapter, DatabaseAdapterQueryOptions, QueryFilter, Operator, StorageAdapter, FileMetadata } from './adapters/index.js';
export * from './adapters/index.js';
export * from './schemas.js';
export * from './guards.js';
export * from './errors/index.js';
export type { PluginHook, PluginContext, Plugin, PluginManagerOptions, } from './plugin-types.js';
export { z } from 'zod';
/**
* Public query options interface for API consumers
* Used in React components and generated hooks
*/
export interface QueryOptions {
select?: string[];
include?: string[];
orderBy?: SortOptions;
distinct?: boolean;
ids?: string[];
limit?: number;
offset?: number;
where?: Record<string, any>;
}
type SortOptions = {
field: string;
direction: 'asc' | 'desc';
};
/**
* Base logger interface used throughout the application
*/
export interface Logger {
info: (message: string, ...args: any[]) => void;
warn: (message: string, ...args: any[]) => void;
error: (message: string, ...args: any[]) => void;
debug: (message: string, ...args: any[]) => void;
}
export { validateConfig } from './schemas.js';
export { ID } from './database/index.js';
//# sourceMappingURL=index.d.ts.map