file & doc: create the index types and update them
This commit is contained in:
1 parent
9dfb0ea462
commit
e9d49ab8bf
1 file changed
+44
@@ -0,0 +1,44 @@
|
||||
export type PriceHistoryItem = {
|
||||
price: number;
|
||||
};
|
||||
|
||||
export type User = {
|
||||
email: string;
|
||||
};
|
||||
|
||||
export type Product = {
|
||||
_id?: string;
|
||||
url: string;
|
||||
currency: string;
|
||||
image: string;
|
||||
title: string;
|
||||
currentPrice: number;
|
||||
originalPrice: number;
|
||||
priceHistory: PriceHistoryItem[] | [];
|
||||
highestPrice: number;
|
||||
lowestPrice: number;
|
||||
averagePrice: number;
|
||||
discountRate: number;
|
||||
description: string;
|
||||
category: string;
|
||||
reviewsCount: number;
|
||||
stars: number;
|
||||
isOutOfStock: Boolean;
|
||||
users?: User[];
|
||||
};
|
||||
|
||||
export type NotificationType =
|
||||
| "WELCOME"
|
||||
| "CHANGE_OF_STOCK"
|
||||
| "LOWEST_PRICE"
|
||||
| "THRESHOLD_MET";
|
||||
|
||||
export type EmailContent = {
|
||||
subject: string;
|
||||
body: string;
|
||||
};
|
||||
|
||||
export type EmailProductInfo = {
|
||||
title: string;
|
||||
url: string;
|
||||
};
|
||||
Reference in new issue
Block a user