-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
68 lines (60 loc) · 1009 Bytes
/
types.ts
File metadata and controls
68 lines (60 loc) · 1009 Bytes
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
export interface Billboard {
id: string;
label: string;
imageUrl: string;
}
export interface Category {
id: string;
name: string;
billboard: Billboard;
}
export interface Product {
id: string;
category: Category;
name: string;
description: string;
price: number;
isFeatured: boolean;
size: Size;
color: Color;
images: Image[];
}
export interface Image {
id: string;
url: string;
}
export interface Size {
id: string;
name: string;
value: string;
}
export interface Color {
id: string;
name: string;
value: string;
}
export type OrderStatus =
| "Created"
| "Processing"
| "Shipped"
| "Delivered"
| "Cancelled";
interface OrderItem {
id: string;
quantity: number;
product: Product;
}
export interface Order {
id: string;
status: OrderStatus;
totalAmount: string;
name: string;
phone: string;
email: string;
address: string;
city: string;
state: string;
postalCode: string;
country: string;
orderItems: OrderItem[];
}