import { ICategory, ImageType, PostBase } from '@/database/baseTypes'; import { IBlog } from '@/database/blog/blog.types'; export namespace IPodcasts { export interface Core extends PostBase { readTime: string; author: IBlog.Author; date: string; description: string; id: number; image: string; transcript: string; imageFile?: ImageType | string; imagePreviewFile?: ImageType | string; imagePreview?: string; order: number; parentId: number; playerIframeLink: string; } export interface Post extends Core { duration: string; guest: string; podcasts: { related_podcasts_id: PostPreview }[]; } export interface Category extends ICategory { description: string; image: ImageType; episodesCount?: number; } export interface GetPostsParams { slug?: string; start?: number; limit?: number; categorySlug?: string; } export type PostPreview = { readTime: string; author: IBlog.Author; guest: string; duration: string; title: string; description: string; imageFile: ImageType; imagePreviewFile?: ImageType | string; imagePreview?: ImageType | string; image: string; category: Category; slug: string; published_at: string; date: string; }; }