1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export type ListingId = string;
|
12 |
|
13 |
|
14 |
|
15 | export type ExternalId = string | null;
|
16 | export type CollectionType =
|
17 | | "long_tail_collection"
|
18 | | "campaign"
|
19 | | "category"
|
20 | | "smart_pick"
|
21 | | "style"
|
22 | | "brand"
|
23 | | "look";
|
24 |
|
25 |
|
26 |
|
27 | export type ShowInBreadcrumbs = boolean;
|
28 |
|
29 |
|
30 |
|
31 | export type ShowInQuicklinks = boolean;
|
32 |
|
33 |
|
34 |
|
35 | export type ImageUrls = string[];
|
36 | export type Title = string;
|
37 | export type Slug = string | null;
|
38 | export type Type = "listing";
|
39 | export type SuggestionsResultId = string;
|
40 |
|
41 |
|
42 |
|
43 | export type Ancestors = ProductListing[];
|
44 |
|
45 | export interface SearchSuggestionsResponseV3 {
|
46 | suggestions_request_id: string;
|
47 | |
48 |
|
49 |
|
50 | suggestions: (QuerySuggestion | ListingSuggestion)[];
|
51 | }
|
52 | export interface QuerySuggestion {
|
53 | type?: "query";
|
54 | suggestions_result_id: string;
|
55 | |
56 |
|
57 |
|
58 | query: string;
|
59 | }
|
60 | export interface ListingSuggestion {
|
61 | listing_id: ListingId;
|
62 | external_id?: ExternalId;
|
63 | listing_type: CollectionType;
|
64 | show_in_breadcrumbs: ShowInBreadcrumbs;
|
65 | show_in_quicklinks: ShowInQuicklinks;
|
66 | image_urls: ImageUrls;
|
67 | title: Title;
|
68 | slug?: Slug;
|
69 | type?: Type;
|
70 | suggestions_result_id: SuggestionsResultId;
|
71 | ancestors: Ancestors;
|
72 | }
|
73 |
|
74 |
|
75 |
|
76 | export interface ProductListing {
|
77 | |
78 |
|
79 |
|
80 | listing_id: string;
|
81 | |
82 |
|
83 |
|
84 | external_id?: string;
|
85 | listing_type: CollectionType;
|
86 | |
87 |
|
88 |
|
89 | show_in_breadcrumbs: boolean;
|
90 | |
91 |
|
92 |
|
93 | show_in_quicklinks: boolean;
|
94 | |
95 |
|
96 |
|
97 | image_urls: string[];
|
98 | title: string;
|
99 | slug?: string;
|
100 | }
|