Created
May 10, 2020 08:19
-
-
Save zhirzh/cb8c2b7143c3d029316177472b5cb657 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface Doodle { | |
alternate_url: string | |
blog_text: string | |
call_to_action_image_url: string | |
collection_id: number | |
countries: string[] | |
doodle_args: DoodleArg[] | |
doodle_type: DoodleType | |
height: number | |
high_res_height: number | |
high_res_url: string | |
high_res_width: number | |
history_doodles: HistoryDoodle[] | AlternateHistoryDoodle[] | |
id: number | null | |
is_animated_gif: boolean | |
is_dynamic: boolean | |
is_global: boolean | |
is_highlighted: boolean | |
name: string | |
next_doodle: SiblingDoodle | null | |
persistent_id: number | |
prev_doodle: SiblingDoodle | null | |
query: string | |
related_doodles: RelatedDoodle[] | |
run_date_array: number[] | |
share_text: string | |
standalone_html: string | |
tags: string[] | |
title: string | |
translated_blog_posts: TranslatedBlogPosts | |
translations: Translations | |
url: string | |
width: number | |
youtube_id: string | |
} | |
export enum DoodleType { | |
Animated = 'animated', | |
Interactive = 'interactive', | |
InlineInteractive = 'inline interactive', | |
Random = 'random', | |
Simple = 'simple', | |
Slideshow = 'slideshow', | |
VideoTemplate = 'video template', | |
} | |
export interface DoodleArg { | |
name: string | |
value: string | |
} | |
export interface HistoryDoodle { | |
alternate_url: string | |
high_res_height: number | |
high_res_url: string | |
high_res_width: number | |
name: string | |
query: string | |
run_date_array: number[] | |
share_text: string | |
title: string | |
translated_blog_posts: TranslatedBlogPosts | |
translations: Translations | |
url: string | |
} | |
export interface AlternateHistoryDoodle { | |
background_color: string | |
call_to_action_image_url: string | |
cta_slot_id: number | |
disable_interactive: true | |
doodle_type: string | |
height: number | |
id: number | null | |
name: string | |
query: string | |
run_date: string | |
share_text: string | |
slot_id: number | |
standalone_html: string | |
title: string | |
url: string | |
width: number | |
youtube_id: string | |
} | |
export interface SiblingDoodle { | |
alternate_url: string | |
high_res_height: number | |
high_res_url: string | |
high_res_width: number | |
name: string | |
run_date_array: number[] | |
title: string | |
translated_blog_posts: TranslatedBlogPosts | |
translations: Translations | |
url: string | |
} | |
export interface RelatedDoodle { | |
alternate_url: string | |
high_res_height: number | |
high_res_url: string | |
high_res_width: number | |
name: string | |
query: string | |
run_date_array: number[] | |
share_text: string | |
title: string | |
translated_blog_posts: TranslatedBlogPosts | |
translations: Translations | |
url: string | |
} | |
export interface Translations { | |
[key: string]: { | |
hover_text: null | string | |
query: null | string | |
share_text: string | |
} | |
} | |
export interface TranslatedBlogPosts { | |
[key: string]: { | |
blog_post: string | |
language: string | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment