|
| 1 | +/** |
| 2 | + * ObjectQL |
| 3 | + * Copyright (c) 2026-present ObjectStack Inc. |
| 4 | + * |
| 5 | + * This source code is licensed under the MIT license found in the |
| 6 | + * LICENSE file in the root directory of this source tree. |
| 7 | + */ |
| 8 | + |
| 9 | +/** |
| 10 | + * @objectql/types - Type definitions for ObjectQL v4.0 |
| 11 | + * |
| 12 | + * This package provides the core TypeScript type definitions for ObjectQL's |
| 13 | + * plugin-based architecture. It includes: |
| 14 | + * |
| 15 | + * - Plugin interfaces (QueryProcessorPlugin, RepositoryPlugin) |
| 16 | + * - Query types (UnifiedQuery, FilterExpression) |
| 17 | + * - Runtime context and options |
| 18 | + * |
| 19 | + * Key principles: |
| 20 | + * - Zero dependencies on other @objectql packages |
| 21 | + * - Depends only on @objectstack/spec and @objectstack/runtime |
| 22 | + * - Strict type safety |
| 23 | + * - Protocol-driven design |
| 24 | + */ |
| 25 | + |
| 26 | +// ============================================================================ |
| 27 | +// Plugin System |
| 28 | +// ============================================================================ |
| 29 | + |
| 30 | +export * from './plugin'; |
| 31 | +export * from './query-processor'; |
| 32 | +export * from './repository'; |
| 33 | + |
| 34 | +// ============================================================================ |
| 35 | +// Query System |
| 36 | +// ============================================================================ |
| 37 | + |
| 38 | +export * from './query'; |
| 39 | + |
| 40 | +// ============================================================================ |
| 41 | +// Re-exports from @objectstack packages |
| 42 | +// ============================================================================ |
| 43 | + |
| 44 | +/** |
| 45 | + * Re-export commonly used types from @objectstack/spec |
| 46 | + * This provides a convenient import path for ObjectQL users. |
| 47 | + */ |
| 48 | +export type { |
| 49 | + DriverInterface, |
| 50 | + // Add other spec types as needed |
| 51 | +} from '@objectstack/spec'; |
| 52 | + |
| 53 | +/** |
| 54 | + * Re-export commonly used types from @objectstack/runtime |
| 55 | + * This provides a convenient import path for ObjectQL users. |
| 56 | + */ |
| 57 | +export type { |
| 58 | + // RuntimePlugin, |
| 59 | + // Runtime, |
| 60 | + // Add other runtime types as needed |
| 61 | +} from '@objectstack/runtime'; |
0 commit comments