updated address type
This commit is contained in:
Vendored
+28
-25
@@ -20,7 +20,7 @@ declare global {
|
||||
email: string;
|
||||
profile_photo: string;
|
||||
phone: string;
|
||||
}
|
||||
};
|
||||
|
||||
type Product = {
|
||||
id: number;
|
||||
@@ -28,10 +28,10 @@ declare global {
|
||||
name: string;
|
||||
description: string;
|
||||
currency: string;
|
||||
"video": string | null,
|
||||
"image1": string,
|
||||
"image2": string,
|
||||
"image3": string,
|
||||
video: string | null;
|
||||
image1: string;
|
||||
image2: string;
|
||||
image3: string;
|
||||
rating: number;
|
||||
view: number;
|
||||
sell: number;
|
||||
@@ -44,40 +44,43 @@ declare global {
|
||||
};
|
||||
|
||||
type UserComment = {
|
||||
"id": number,
|
||||
"content": string,
|
||||
"timestamp": string,
|
||||
"show": boolean,
|
||||
"product": number,
|
||||
"user": number
|
||||
}
|
||||
id: number;
|
||||
content: string;
|
||||
timestamp: string;
|
||||
show: boolean;
|
||||
product: number;
|
||||
user: number;
|
||||
};
|
||||
|
||||
type Category = {
|
||||
id: number;
|
||||
name: string;
|
||||
slug: string;
|
||||
icon: string;
|
||||
"product_count": string,
|
||||
"subcategorys": SubCategory[]
|
||||
product_count: string;
|
||||
subcategorys: SubCategory[];
|
||||
};
|
||||
|
||||
type SubCategory = {
|
||||
"id": number,
|
||||
"name": string,
|
||||
"slug": string,
|
||||
"icon": string,
|
||||
"image": string,
|
||||
"product_count": string,
|
||||
"parent": string,
|
||||
"show": boolean
|
||||
}
|
||||
id: number;
|
||||
name: string;
|
||||
slug: string;
|
||||
icon: string;
|
||||
image: string;
|
||||
product_count: string;
|
||||
parent: string;
|
||||
show: boolean;
|
||||
};
|
||||
|
||||
type Address = {
|
||||
id: number;
|
||||
id: number | undefined;
|
||||
province: string;
|
||||
city: string;
|
||||
postal_code: string;
|
||||
full_address: string;
|
||||
address: string;
|
||||
phone: string;
|
||||
name: string;
|
||||
for_me: "خیر" | "بله";
|
||||
};
|
||||
|
||||
type DeliveryMethod = {
|
||||
|
||||
Reference in New Issue
Block a user