-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.ts
61 lines (56 loc) · 1012 Bytes
/
types.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
export interface Product {
[key: string]: any;
seller_id: string;
title: string;
price: number;
initial_quantity: number;
available_quantity: number;
sold_quantity: number;
catalog_product_id: string;
shipping: {
free_shipping: boolean;
};
thumbnail: string;
pictures: [
{
id: string;
url: string;
secure_url: string;
size: string;
max_size: string;
quality: "";
}
];
condition: string;
}
export interface ProductsArray {
products: Product[];
}
export interface Seller {
nickname: string;
permalink: string;
seller_reputation: {
level_id: string;
power_seller_status: string;
transactions: {
completed: number;
};
};
address: {
city: string;
};
}
export interface MainFeatures {
text: string;
}
interface Attr {
name: string;
value_name: string;
}
export interface ProductAttr {
main_features: MainFeatures[];
attributes: Attr[];
short_description: {
content: string;
};
}