UNPKG

6.24 kBTypeScriptView Raw
1export interface SavedFeedResponseRootObject {
2 items: SavedFeedResponseItemsItem[];
3 num_results: number;
4 more_available: boolean;
5 auto_load_more_enabled: boolean;
6 status: string;
7 next_max_id: string;
8}
9export interface SavedFeedResponseItemsItem {
10 media: SavedFeedResponseMedia;
11}
12export interface SavedFeedResponseMedia {
13 taken_at: number;
14 pk: string;
15 id: string;
16 device_timestamp: string | number;
17 media_type: number;
18 code: string;
19 client_cache_key: string;
20 filter_type: number;
21 image_versions2?: SavedFeedResponseImage_versions2;
22 original_width?: number;
23 original_height?: number;
24 user: SavedFeedResponseUser;
25 can_viewer_reshare: boolean;
26 caption_is_edited: boolean;
27 is_external_share_disabled?: boolean;
28 comment_likes_enabled: boolean;
29 comment_threading_enabled: boolean;
30 has_more_comments: boolean;
31 next_max_id: string;
32 max_num_visible_preview_comments: number;
33 preview_comments: SavedFeedResponsePreviewCommentsItem[];
34 can_view_more_preview_comments: boolean;
35 comment_count: number;
36 inline_composer_display_condition: string;
37 inline_composer_imp_trigger_time: number;
38 like_count: number;
39 has_liked: boolean;
40 photo_of_you: boolean;
41 product_tags?: SavedFeedResponseProduct_tags;
42 can_see_insights_as_brand?: boolean;
43 caption: SavedFeedResponseCaption;
44 can_viewer_save: boolean;
45 has_viewer_saved: boolean;
46 saved_collection_ids: any[];
47 organic_tracking_token: string;
48 usertags?: SavedFeedResponseUsertags;
49 is_dash_eligible?: number;
50 video_dash_manifest?: string;
51 video_codec?: string;
52 number_of_qualities?: number;
53 video_versions?: SavedFeedResponseVideoVersionsItem[];
54 has_audio?: boolean;
55 video_duration?: number;
56 view_count?: number;
57 carousel_media_count?: number;
58 carousel_media?: SavedFeedResponseCarouselMediaItem[];
59 location?: SavedFeedResponseLocation;
60}
61export interface SavedFeedResponseImage_versions2 {
62 candidates: SavedFeedResponseCandidatesItem[];
63}
64export interface SavedFeedResponseCandidatesItem {
65 width: number;
66 height: number;
67 url: string;
68 estimated_scans_sizes?: number[];
69}
70export interface SavedFeedResponseUser {
71 pk: number;
72 username: string;
73 full_name: string;
74 is_private: boolean;
75 profile_pic_url: string;
76 friendship_status?: SavedFeedResponseFriendship_status;
77 is_verified: boolean;
78 has_anonymous_profile_picture?: boolean;
79 is_unpublished?: boolean;
80 is_favorite?: boolean;
81 show_shoppable_feed?: boolean;
82 shoppable_posts_count?: number;
83 can_be_reported_as_fraud?: boolean;
84 latest_reel_media?: number;
85 profile_pic_id?: string;
86}
87export interface SavedFeedResponseFriendship_status {
88 following: boolean;
89 outgoing_request: boolean;
90 is_bestie: boolean;
91 is_restricted: boolean;
92}
93export interface SavedFeedResponsePreviewCommentsItem {
94 pk: string;
95 user_id: number;
96 text: string;
97 type: number;
98 created_at: number;
99 created_at_utc: number;
100 content_type: string;
101 status: string;
102 bit_flags: number;
103 user: SavedFeedResponseUser;
104 did_report_as_spam: boolean;
105 share_enabled: boolean;
106 media_id: string;
107 has_liked_comment: boolean;
108 comment_like_count: number;
109 has_translation?: boolean;
110 parent_comment_id?: string;
111}
112export interface SavedFeedResponseProduct_tags {
113 in: SavedFeedResponseInItem[];
114}
115export interface SavedFeedResponseInItem {
116 product?: SavedFeedResponseProduct;
117 position: string[] | number[];
118 user?: SavedFeedResponseUser;
119 start_time_in_video_in_sec?: null;
120 duration_in_video_in_sec?: null;
121}
122export interface SavedFeedResponseProduct {
123 name: string;
124 price: string;
125 current_price: string;
126 full_price: string;
127 product_id: string;
128 merchant: SavedFeedResponseMerchant;
129 description: string;
130 retailer_id: string;
131 has_viewer_saved: boolean;
132 main_image: SavedFeedResponseMain_image;
133 thumbnail_image: SavedFeedResponseThumbnail_image;
134 review_status: string;
135 external_url: string;
136 checkout_style: string;
137 can_share_to_story: boolean;
138 full_price_stripped: string;
139 current_price_stripped: string;
140 variant_values?: SavedFeedResponseVariantValuesItem[];
141}
142export interface SavedFeedResponseMerchant {
143 pk: number;
144 username: string;
145 profile_pic_url: string;
146}
147export interface SavedFeedResponseMain_image {
148 image_versions2: SavedFeedResponseImage_versions2;
149 preview: null;
150}
151export interface SavedFeedResponseThumbnail_image {
152 image_versions2: SavedFeedResponseImage_versions2;
153 preview: null;
154}
155export interface SavedFeedResponseVariantValuesItem {
156 id: string;
157 value: string;
158 name: string;
159 is_preselected: boolean;
160 visual_style: string;
161}
162export interface SavedFeedResponseCaption {
163 pk: string;
164 user_id: number;
165 text: string;
166 type: number;
167 created_at: number;
168 created_at_utc: number;
169 content_type: string;
170 status: string;
171 bit_flags: number;
172 user: SavedFeedResponseUser;
173 did_report_as_spam: boolean;
174 share_enabled: boolean;
175 media_id: string;
176 has_translation?: boolean;
177}
178export interface SavedFeedResponseUsertags {
179 in: SavedFeedResponseInItem[];
180}
181export interface SavedFeedResponseVideoVersionsItem {
182 type: number;
183 width: number;
184 height: number;
185 url: string;
186 id: string;
187}
188export interface SavedFeedResponseCarouselMediaItem {
189 id: string;
190 media_type: number;
191 image_versions2: SavedFeedResponseImage_versions2;
192 original_width: number;
193 original_height: number;
194 pk: string;
195 carousel_parent_id: string;
196 usertags: SavedFeedResponseUsertags;
197 video_versions?: SavedFeedResponseVideoVersionsItem[];
198 video_duration?: number;
199 is_dash_eligible?: number;
200 video_dash_manifest?: string;
201 video_codec?: string;
202 number_of_qualities?: number;
203}
204export interface SavedFeedResponseLocation {
205 pk: number;
206 name: string;
207 address: string;
208 city: string;
209 short_name: string;
210 lng: number;
211 lat: number;
212 external_source: string;
213 facebook_places_id: number;
214}