-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
54 lines (48 loc) · 1.11 KB
/
Copy pathtypes.ts
File metadata and controls
54 lines (48 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export interface Product {
id: string;
name: string;
price: number;
category: 'Men' | 'Women' | 'Kids' | 'Accessories';
type: 'Shoes' | 'Apparel' | 'Gear';
sport?: 'Running' | 'Football' | 'Basketball' | 'Outdoor' | 'Training' | 'Lifestyle';
image: string;
description: string;
features: string[];
rating: number;
reviews: number;
new?: boolean;
bestseller?: boolean;
stock: number;
}
export interface CartItem extends Product {
quantity: number;
selectedSize: string;
}
export type UserRole = 'admin' | 'customer';
export interface User {
id: string;
name: string;
email: string;
role: UserRole;
}
export interface Order {
id: string;
userId: string | 'guest';
customerName: string;
customerEmail: string;
items: CartItem[];
total: number;
status: 'Pending' | 'Processing' | 'Shipped' | 'Delivered' | 'Cancelled';
date: string;
}
export interface ChatMessage {
role: 'user' | 'model';
text: string;
products?: Product[];
}
export enum SortOption {
NEWEST = 'Newest',
PRICE_LOW = 'Price: Low-High',
PRICE_HIGH = 'Price: High-Low',
POPULAR = 'Most Popular'
}