- Created src/entities/Font/api/proxy/proxyFonts.ts - Implemented fetchProxyFonts function with full pagination support - Implemented fetchProxyFontById convenience function - Added TypeScript interfaces: ProxyFontsParams, ProxyFontsResponse - Added comprehensive JSDoc documentation - Updated src/entities/Font/api/index.ts to export proxy API Phase 1/7: Proxy API Integration for GlyphDiff
38 lines
841 B
TypeScript
38 lines
841 B
TypeScript
/**
|
|
* Font API clients exports
|
|
*
|
|
* Exports API clients and normalization utilities
|
|
*/
|
|
|
|
// Proxy API (PRIMARY - NEW)
|
|
export {
|
|
fetchProxyFontById,
|
|
fetchProxyFonts,
|
|
} from './proxy/proxyFonts';
|
|
export type {
|
|
ProxyFontsParams,
|
|
ProxyFontsResponse,
|
|
} from './proxy/proxyFonts';
|
|
|
|
// Google Fonts API (DEPRECATED - kept for backward compatibility)
|
|
export {
|
|
fetchGoogleFontFamily,
|
|
fetchGoogleFonts,
|
|
} from './google/googleFonts';
|
|
export type {
|
|
GoogleFontItem,
|
|
GoogleFontsParams,
|
|
GoogleFontsResponse,
|
|
} from './google/googleFonts';
|
|
|
|
// Fontshare API (DEPRECATED - kept for backward compatibility)
|
|
export {
|
|
fetchAllFontshareFonts,
|
|
fetchFontshareFontBySlug,
|
|
fetchFontshareFonts,
|
|
} from './fontshare/fontshare';
|
|
export type {
|
|
FontshareParams,
|
|
FontshareResponse,
|
|
} from './fontshare/fontshare';
|