UNPKG

1.42 kBTypeScriptView Raw
1/* eslint-disable */
2/**
3 * This file was automatically generated by json-schema-to-typescript.
4 * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5 * and run json-schema-to-typescript to regenerate this file.
6 */
7
8export type CollectionType =
9 | "long_tail_collection"
10 | "campaign"
11 | "category"
12 | "smart_pick"
13 | "style"
14 | "brand"
15 | "look";
16
17export interface FeaturedInResponseV3 {
18 listings: FeaturedInDisplay[];
19}
20export interface FeaturedInDisplay {
21 /**
22 * Depict ID of the listing.
23 */
24 listing_id: string;
25 /**
26 * ID of the listing in the merchant PIM, CMS or similar.
27 */
28 external_id?: string;
29 listing_type: CollectionType;
30 /**
31 * Show or hide this listing in navigation breadcrumbs.
32 */
33 show_in_breadcrumbs: boolean;
34 /**
35 * Show or hide this listing in quicklinks.
36 */
37 show_in_quicklinks: boolean;
38 /**
39 * List of image URLs for the listing.
40 */
41 image_urls: string[];
42 title: string;
43 slug?: string;
44 displays: MinimalDisplay[];
45}
46export 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}
53export 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}