mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-02-20 01:24:45 +08:00
- Introduced new IPC channels for Data API requests and responses in IpcChannel. - Added swr library to package.json for improved data fetching capabilities. - Updated preload API to include Data API related methods for handling requests and subscriptions. - Removed deprecated pending_default_values.ts file as part of data refactor.
33 lines
925 B
TypeScript
33 lines
925 B
TypeScript
/**
|
|
* API Module - Unified entry point
|
|
*
|
|
* This module exports all necessary components for the Data API system
|
|
* Designed to be portable and reusable in different environments
|
|
*/
|
|
|
|
// Core components
|
|
export { ApiServer } from './core/ApiServer'
|
|
export { MiddlewareEngine } from './core/MiddlewareEngine'
|
|
|
|
// Adapters
|
|
export { IpcAdapter } from './core/adapters/IpcAdapter'
|
|
// export { HttpAdapter } from './core/adapters/HttpAdapter' // Future implementation
|
|
|
|
// Handlers (new type-safe system)
|
|
export { apiHandlers } from './handlers'
|
|
|
|
// Services (still used by handlers)
|
|
export { TestService } from './services/TestService'
|
|
|
|
// Re-export types for convenience
|
|
export type { CreateTestItemDto, TestItem, UpdateTestItemDto } from '@shared/data/api'
|
|
export type {
|
|
DataRequest,
|
|
DataResponse,
|
|
Middleware,
|
|
PaginatedResponse,
|
|
PaginationParams,
|
|
RequestContext,
|
|
ServiceOptions
|
|
} from '@shared/data/api/apiTypes'
|