veza/apps/web/src/services/api/index.ts
senke 292e9a8402 scalability: create unified index file for API services
- Updated apps/web/src/services/api/index.ts to export all API services
- Exports apiClient and utilities from './client'
- Exports authApi and types from './auth'
- Exports tracksApi and types from './tracks'
- Exports usersApi and types from './users'
- Exports playlistsApi and types from './playlists'
- Removed duplicate apiClient export from './auth'
- Added documentation comments for each service section
- All services properly exported and accessible via barrel export
- No TypeScript errors
- Action 6.1.1.9 complete
2026-01-15 20:42:09 +01:00

36 lines
983 B
TypeScript

/**
* INT-CLEANUP-004: Barrel export for API services
* Action 6.1.1.9: Create index file for API services
* This file exports all API-related services and clients for clean imports
*/
// Export the main API client
export {
apiClient,
API_TIMEOUTS,
createCancellableRequest,
createRequestWithTimeout,
deduplicatedApiClient,
} from './client';
// Note: validatedApiClient and typedApiClient have been deprecated in favor of
// direct use of apiClient which now includes validation and type support via generics.
// Export all API services
// Action 6.1.1.9: All services exported from unified index
// Auth API Service
export { authApi } from './auth';
export type * from './auth';
// Tracks API Service
export { tracksApi } from './tracks';
export type * from './tracks';
// Users API Service
export { usersApi } from './users';
export type * from './users';
// Playlists API Service
export { playlistsApi } from './playlists';
export type * from './playlists';