astro_avtourist/frontend/src/globalInterfaces.ts
2026-04-18 18:25:10 +05:00

80 lines
1.3 KiB
TypeScript

export interface Post {
id: string;
slug: string;
title: string;
description: string;
author: string;
category: string;
categoryColor: string;
date: string;
readTime: string;
readmeTime: string;
image: string;
content?: string;
draft: boolean;
}
export interface EmailOptions {
to: string;
subject: string;
html: string;
}
export interface Review {
id: number;
name: string;
car: string;
text: string;
rating: number;
avatar: { initial: string; color: string; };
date: string;
votesCount: number;
isHelpful: boolean;
}
export interface Case {
id: number;
title: string;
category: CaseCategory;
description: string;
result: string;
clientStory: string;
amount: string;
duration: string;
image: string;
tags: string[];
featured?: boolean;
}
export type CaseCategory =
| "insurance"
| "rights"
| "accident"
| "court"
| "consultation";
export interface DocumentItem {
id: string;
title: string;
description: string;
fileSize: string;
fileType: 'pdf' | 'docx' | 'xlsx' | 'zip';
downloadUrl: string;
category: string;
tags?: string[];
}
export interface NavLink {
name: string;
url: string;
}
export interface CompanyInfo {
name: string;
fullName: string;
phone: string;
phoneClean: string;
email: string;
address: string;
workHours: string;
}