- 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
36 lines
983 B
TypeScript
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';
|