convexsol_stage/interfaces/blog.interface.ts
2025-12-02 11:02:00 +05:30

67 lines
1.4 KiB
TypeScript

interface LogoImageDataInterface {
data: { attributes: { url: string; alternativeText: string; width?: number; height?: number } };
}
export interface BlogPageInterface {
id: number;
attributes: BlogCardInterface;
}
export interface FaqInterface {
details?: string;
title: string;
FAQ: {
details: string;
title: string;
icon?: LogoImageDataInterface;
}[];
}
export interface BlogCardInterface {
slug: string;
category: string;
updatedAt: string;
createdAt: string;
title: string;
details: string;
image: LogoImageDataInterface;
bodyImage?: LogoImageDataInterface;
bodySubTitle?: string;
bodyText: string;
faq: FaqInterface;
categoryLists: BlogCategoryListInterface;
// bodyTitle?: string;
// bodyTextTwo?: string;
isPin: boolean;
}
export interface BlogCategoryListInterface {
data: {
attributes: {
title: string;
category: string;
icon: LogoImageDataInterface;
};
}[];
}
export interface BlogIndustryListInterface {
data: {
attributes: {
title: string;
industry: string;
};
}[];
}
export interface BlogHomePageDataInterface {
attributes: {
heading: string;
description: string;
links: {
title: string;
link: string;
};
};
}