1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export type CollectionType =
|
9 | | "long_tail_collection"
|
10 | | "campaign"
|
11 | | "category"
|
12 | | "smart_pick"
|
13 | | "style"
|
14 | | "brand"
|
15 | | "look";
|
16 |
|
17 | export interface FeaturedInResponseV3 {
|
18 | listings: FeaturedInDisplay[];
|
19 | }
|
20 | export interface FeaturedInDisplay {
|
21 | |
22 |
|
23 |
|
24 | listing_id: string;
|
25 | |
26 |
|
27 |
|
28 | external_id?: string;
|
29 | listing_type: CollectionType;
|
30 | |
31 |
|
32 |
|
33 | show_in_breadcrumbs: boolean;
|
34 | |
35 |
|
36 |
|
37 | show_in_quicklinks: boolean;
|
38 | |
39 |
|
40 |
|
41 | image_urls: string[];
|
42 | title: string;
|
43 | slug?: string;
|
44 | displays: MinimalDisplay[];
|
45 | }
|
46 | export interface MinimalDisplay {
|
47 | variant_index: number;
|
48 | variant_displays: MinimalVariantDisplay[];
|
49 | recommendation_id?: string;
|
50 | search_result_id?: string;
|
51 | product_listing_result_id?: string;
|
52 | }
|
53 | export interface MinimalVariantDisplay {
|
54 | product_id: string;
|
55 | title: string;
|
56 | image_urls: string[];
|
57 | original_price: number;
|
58 | sale_price: number;
|
59 | in_stock: boolean;
|
60 | [k: string]: unknown;
|
61 | }
|