|
6 | 6 | * LICENSE file in the root directory of this source tree. |
7 | 7 | */ |
8 | 8 |
|
9 | | -// ── Re-export upstream canonical engine ── |
10 | | -export type { ObjectKernel } from '@objectstack/runtime'; |
11 | | -export type { ObjectStackProtocolImplementation } from '@objectstack/objectql'; |
12 | | - |
13 | | -// Re-export new @objectstack/objectql 1.1.0 FQN (Fully Qualified Name) utilities |
14 | | -export { |
15 | | - computeFQN, |
16 | | - parseFQN, |
17 | | - RESERVED_NAMESPACES, |
18 | | - DEFAULT_OWNER_PRIORITY, |
19 | | - DEFAULT_EXTENDER_PRIORITY, |
20 | | - SchemaRegistry, |
21 | | -} from '@objectstack/objectql'; |
22 | | -export type { ObjectContributor } from '@objectstack/objectql'; |
23 | | - |
24 | | -// Re-export upstream types exported by @objectstack/objectql for plugin authors |
25 | | -export type { |
26 | | - ObjectQLHostContext, |
27 | | - HookHandler as UpstreamHookHandler, |
28 | | - HookEntry, |
29 | | - OperationContext, |
30 | | - EngineMiddleware, |
31 | | -} from '@objectstack/objectql'; |
32 | | - |
33 | | -// Export ObjectStack spec types for driver development |
34 | | -import { Data, Automation } from '@objectstack/spec'; |
35 | | -import { z } from 'zod'; |
36 | | -export { QueryAST } from '@objectql/types'; |
37 | | -export type DriverInterface = z.infer<typeof Data.DriverInterfaceSchema>; |
38 | | -export type DriverOptions = z.infer<typeof Data.DriverOptionsSchema>; |
39 | | - |
40 | | -// Re-export new @objectstack/spec 1.1.0 types |
41 | | -export type StateMachineConfig = z.infer<typeof Automation.StateMachineSchema>; |
42 | | -export type ObjectOwnership = z.infer<typeof Data.ObjectOwnershipEnum>; |
43 | | -export type ObjectExtension = z.infer<typeof Data.ObjectExtensionSchema>; |
44 | | - |
45 | 9 | // ── Convenience factory ── |
46 | 10 | export { createObjectQLKernel, type ObjectQLKernelOptions } from './kernel-factory'; |
47 | 11 |
|
48 | | -// ── Gateway (kept in core — upstream server handles API layer) ── |
49 | | -export * from './gateway'; |
50 | | - |
51 | | -// ── Core runtime components (backward compatibility) ── |
| 12 | +// ── Core runtime components ── |
52 | 13 | export * from './repository'; |
53 | 14 | export * from './app'; |
54 | 15 | export * from './plugin'; |
55 | 16 |
|
56 | 17 | // ── Utilities ── |
57 | 18 | export * from './util'; |
58 | | - |
59 | | -// ── Re-export from @objectql/plugin-query (backward compatibility) ── |
60 | | -// Import from '@objectql/plugin-query' directly for new code. |
61 | | - |
62 | | -/** @deprecated Import from '@objectql/plugin-query' instead */ |
63 | | -export { QueryService } from '@objectql/plugin-query'; |
64 | | -/** @deprecated Import from '@objectql/plugin-query' instead */ |
65 | | -export { QueryBuilder } from '@objectql/plugin-query'; |
66 | | -/** @deprecated Import from '@objectql/plugin-query' instead */ |
67 | | -export { QueryAnalyzer } from '@objectql/plugin-query'; |
68 | | -/** @deprecated Import from '@objectql/plugin-query' instead */ |
69 | | -export { FilterTranslator } from '@objectql/plugin-query'; |
70 | | -/** @deprecated Import from '@objectql/plugin-query' instead */ |
71 | | -export { QueryPlugin } from '@objectql/plugin-query'; |
72 | | - |
73 | | -export type { |
74 | | - QueryOptions, |
75 | | - QueryResult, |
76 | | - QueryProfile, |
77 | | -} from '@objectql/plugin-query'; |
78 | | -export type { |
79 | | - QueryPlan, |
80 | | - ProfileResult, |
81 | | - QueryStats, |
82 | | -} from '@objectql/plugin-query'; |
83 | | - |
84 | | -// ── Re-export from @objectql/plugin-optimizations (backward compatibility) ── |
85 | | -// Import from '@objectql/plugin-optimizations' directly for new code. |
86 | | - |
87 | | -/** @deprecated Import from '@objectql/plugin-optimizations' instead */ |
88 | | -export { OptimizedMetadataRegistry } from '@objectql/plugin-optimizations'; |
89 | | -/** @deprecated Import from '@objectql/plugin-optimizations' instead */ |
90 | | -export { QueryCompiler } from '@objectql/plugin-optimizations'; |
91 | | -/** @deprecated Import from '@objectql/plugin-optimizations' instead */ |
92 | | -export { CompiledHookManager } from '@objectql/plugin-optimizations'; |
93 | | -/** @deprecated Import from '@objectql/plugin-optimizations' instead */ |
94 | | -export { GlobalConnectionPool } from '@objectql/plugin-optimizations'; |
95 | | -/** @deprecated Import from '@objectql/plugin-optimizations' instead */ |
96 | | -export { OptimizedValidationEngine } from '@objectql/plugin-optimizations'; |
97 | | -/** @deprecated Import from '@objectql/plugin-optimizations' instead */ |
98 | | -export { LazyMetadataLoader } from '@objectql/plugin-optimizations'; |
99 | | -/** @deprecated Import from '@objectql/plugin-optimizations' instead */ |
100 | | -export { DependencyGraph } from '@objectql/plugin-optimizations'; |
101 | | -/** @deprecated Import from '@objectql/plugin-optimizations' instead */ |
102 | | -export { SQLQueryOptimizer } from '@objectql/plugin-optimizations'; |
103 | | -/** @deprecated Import from '@objectql/plugin-optimizations' instead */ |
104 | | -export { OptimizationsPlugin } from '@objectql/plugin-optimizations'; |
105 | | - |
106 | | -export type { CompiledQuery } from '@objectql/plugin-optimizations'; |
107 | | -export type { Hook } from '@objectql/plugin-optimizations'; |
108 | | -export type { Connection, PoolLimits } from '@objectql/plugin-optimizations'; |
109 | | -export type { ValidatorFunction, ValidationSchema } from '@objectql/plugin-optimizations'; |
110 | | -export type { ObjectMetadata, MetadataLoader } from '@objectql/plugin-optimizations'; |
111 | | -export type { DependencyEdge, DependencyType } from '@objectql/plugin-optimizations'; |
112 | | -export type { IndexMetadata, SchemaWithIndexes, OptimizableQueryAST } from '@objectql/plugin-optimizations'; |
0 commit comments