-
Notifications
You must be signed in to change notification settings - Fork 0
/
typing.d.ts
129 lines (117 loc) · 2.21 KB
/
typing.d.ts
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
type Category =
| "Home"
| "Food"
| "About"
| "Menus"
| "Review"
| "Order" ;
type canOrderCountry ={
name : string
Countryname: string
}
interface FoodReviews {
_id: string;
ReviewerName: string;
ReviewerProfile: string;
Reviewe: string;
Rating: string;
}
interface RATING {
RATING: string;
}
interface Order_data {
quantity : number;
Price : number
name : string;
description : string;
images : string;
}
interface UserBuyingProduct {
id : string;
FoodImage : string;
Price : string;
name : string;
}
type FoodProduct ={
id: string
name: string
Price:string
FoodImage: string
Popular: string
Foodinfo:string
FoodReviews: FoodReviews [];
CanOrder: boolean,
Rating: RATING
Outofstock: string
}
type FoodProducts ={
FoodProducts: []
}
type PropsCross ={
roles : any
name: string
Price:string
FoodImage: string
Foodinfo:string
CanOrder: boolean,
Outofstock: string
}
type PropsCross_Promote ={
name: string
Price:string
FoodImage: string
Foodinfo:string
CanOrder: boolean,
Outofstock: string
}
type All_Users = {
name : string
id : string
userProfile : string
email : string
Userstatus : string
TotalBuyingPrice : Number
UserBuyingProduct : UserBuyingProduct[]
}
type Transaction = {
_id: string;
userId: string;
cost: number;
products: string[];
}
type monthlyData = {
month: string;
totalSales: number;
totalUnits: number;
}
type salesByCategory = {
Jucie: number ;
Coffee: number;
Pizza: number;
Taco: number;
Burger: number;
Cake: number;
}
type Dailydata = {
date:string,
totalSales: number,
totalUnits: number ,
}
type User_Orders = {
id :string,
email :string,
name :string,
amount : number,
phone :string,
city :string,
country :string,
town :string,
postal_code :string,
state :string,
Order_data : Order_data[]
}
type Reviews_data = {
user_img: string
user_name : string
Review_text : string
}