fitst commit
This commit is contained in:
44
types/index.ts
Normal file
44
types/index.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
export type TabKey = 'products' | 'companies' | 'countries';
|
||||
|
||||
export interface Product {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
category: string;
|
||||
price?: number;
|
||||
company_id?: number;
|
||||
}
|
||||
|
||||
export interface Company {
|
||||
id: number;
|
||||
company_name: string;
|
||||
description?: string;
|
||||
country?: string;
|
||||
industry?: string;
|
||||
products?: Product[];
|
||||
}
|
||||
|
||||
export interface Country {
|
||||
iso: string;
|
||||
name: string;
|
||||
id: number;
|
||||
}
|
||||
|
||||
export interface State {
|
||||
iso: string;
|
||||
name: string;
|
||||
country_iso: string;
|
||||
}
|
||||
|
||||
export interface City {
|
||||
iso: string;
|
||||
name: string;
|
||||
state_iso: string;
|
||||
}
|
||||
|
||||
export interface FilterData {
|
||||
country: { name: string; iso: string };
|
||||
state: { name: string; iso: string };
|
||||
city: { name: string; iso: string };
|
||||
industries: string[];
|
||||
}
|
||||
Reference in New Issue
Block a user