UNPKG

lightweight-client

Version:

Lightweight TypeScript client library for content management - fetch blog articles, categories, tags, and SEO content

30 lines (29 loc) 847 B
export declare class LightweightClient { private key; private baseUrl; constructor(key: string, baseUrl?: string); private makeRequest; private fetchBase; private fetchPost; getPosts(page: number, limit?: number): Promise<{ articles: any; total: any; pagination: any; }>; getCategoryPosts(slug: string, page: number, limit?: number): Promise<{ articles: any; total: any; pagination: any; }>; getTagPosts(slug: string, page: number, limit?: number): Promise<{ articles: any; total: any; pagination: any; }>; getPost(slug: string): Promise<any>; getCategories(): Promise<any>; getTags(): Promise<any>; getStats(): Promise<any>; getSitemap(baseUrl: string): Promise<string>; healthCheck(): Promise<any>; }