import { ICategory, PostBase } from '@/database/baseTypes'; export namespace ISalesTools { export interface Question { title: string; text: string; } export interface PostInfo { founded: string; employees: string; description: string; headquarters: string; } export interface Review { platformName: string; rate: Number; } export interface Post extends PostBase { image: string; googleMapUrl: string; info: PostInfo; similarTools: SimilarTool[]; bookACallUrl: string; rating: number; reviews?: Review[]; category: Category; infoTable?: InfoTable; } export interface PostPreview { title: string; slug: string; image: string; info: PostInfo; category: Category; rating: number; } export interface SimilarTool extends Omit { id: number; 'related_sales-tools-posts_id': { category: string; }; } export interface GetPostsParams { slug?: string; categorySlug?: string; limit?: number; start?: number; } export interface Category extends ICategory { contentTop: string; contentBottom: string; } export interface InfoTable { topExecutive: string; mainServices: Service[]; customersServed: string; freeTrial: boolean; } export interface Service { name: string; } }