Skip to content

Commit

Permalink
Updated schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHeitmann committed Feb 25, 2024
1 parent 8f134c9 commit bebdc97
Show file tree
Hide file tree
Showing 24 changed files with 2,640 additions and 160 deletions.
20 changes: 10 additions & 10 deletions schemas/RC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ interface RedditComment {
count: number,
days_of_drip_extension: number|null,
days_of_premium: number|null,
description: "Silver Award"|"Gold Award"|"Platinum Award"|null,
description: string|null,
end_date?: null|number,
giver_coin_reward?: null|number,
icon_format?: null|"PNG"|"APNG"|"JPG",
icon_height: number,
icon_url: string,
icon_width: number,
id: "gid_1"|"gid_2"|"gid_3",
id: string,
is_enabled: boolean,
is_new?: boolean,
name: "Silver"|"Gold"|"Platinum"|"Lemon Cake"|"Iron Coin"|"Apt Analysis"|"Greenseer"|"Hand of the Queen"|"Crying MJ"|"Crown"|"Hodor"|"Perfect Murder"|"Most Valuable"|"Quality OC"|"Tinfoil"|null,
name: string|null,
penny_donate?: null|number,
penny_price?: null|number,
resized_icons: {
Expand Down Expand Up @@ -93,7 +93,7 @@ interface RedditComment {
icon_height: number,
icon_url: string,
icon_width: number,
id: "gid_1"|"gid_2"|"gid_3",
id: string,
is_enabled: boolean,
is_new: boolean,
name: string,
Expand Down Expand Up @@ -156,14 +156,14 @@ interface RedditComment {
u?: string,
}[],
author_flair_template_id?: null|string,
author_flair_text: null|"PhD | Computer Science"|"BS | Physics"|"PhD | Robotics"|"Canada"|"MD | OB/GYN | GYN Oncology"|"Professor | Computer Science"|"Nürnberg"|"BS|Chemical Engineering"|"BS | Physics and Astronomy|Education"|"Professor|Computing|Machine Learning"|"BS | Zoology | Ecology and Entomology"|"PhD | Synthetic Organic Chemistry",
author_flair_text: null|string,
author_flair_text_color?: null|"dark"|"light"|"",
author_flair_type?: "text"|"richtext",
author_fullname?: string|null,
author_is_blocked?: boolean,
author_patreon_flair?: boolean,
author_premium?: boolean,
awarders?: ("Bioniclegenius"|"Belli91"|"shuntzu7"|"wearewildwinter"|"ucbsuperfreak"|"Dragonster82"|"NovaKevin"|"Dev_h1pp0p0t4mu5"|"ForgottenLoreInAutum")[],
awarders?: string[],
banned_at_utc?: null,
banned_by?: null,
body: string,
Expand Down Expand Up @@ -224,7 +224,7 @@ interface RedditComment {
[key: string]: {
e?: "AnimatedImage"|"Image",
ext?: string,
id?: "emote|emo_pack_1|dance"|"emote|emo_pack_1|clappy"|"emote|emo_pack_1|dab"|"emote|emo_pack_1|respect"|"emote|emo_pack_1|uNfOrTuNaTeLy"|"emote|emo_pack_1|confused"|"emote|emo_pack_1|bush"|"emote|emo_pack_1|cuddle"|"emote|emo_pack_1|oof"|"emote|emo_pack_1|wow"|"emote|emo_pack_1|chug"|"emote|emo_pack_1|default"|"emote|emo_pack_1|blink"|"emote|free_emotes_pack|facepalm"|"emote|emo_pack_1|soon",
id?: string,
m?: "image/gif"|"image/png"|"image/jpeg",
p?: {
u: string,
Expand Down Expand Up @@ -265,13 +265,13 @@ interface RedditComment {
send_replies?: boolean,
steward_reports?: [],
stickied?: boolean,
subreddit: "reddit.com"|"nsfw"|"programming"|"features"|"joel"|"ja"|"request"|"ru"|"de"|"tr"|"no"|"pl"|"es"|"fr"|"it",
subreddit_id: "t5_6"|"t5_vf2"|"t5_2fwo"|"t5_21n6"|"t5_3b8o"|"t5_22i6"|"t5_21nj"|"t5_247i"|"t5_22i0"|"t5_2478"|"t5_247e"|"t5_2475"|"t5_22i2"|"t5_22i1"|"t5_247c",
subreddit: string,
subreddit_id: string,
subreddit_name_prefixed?: string,
subreddit_type?: "public"|"restricted"|"user"|"archived"|"private"|"gold_restricted",
top_awarded_type?: null,
total_awards_received?: number,
treatment_tags?: ("econ:render:lottie:redstar"|"econ:render:lottie:bulb"|"econ:render:lottie:sunny2"|"econ:render:lottie:cutie"|"econ:render:glow:ff0000"|"econ:render:bubble:flame"|"econ:render:lottie:heartbeat"|"econ:render:lottie:champagne"|"econ:render:lottie:sunny"|"econ:render:lottie:halloween2020"|"econ:render:lottie:santasnoo")[],
treatment_tags?: string[],
unrepliable_reason?: null|"NEAR_BLOCKER",
ups?: number,
user_reports?: []|null,
Expand Down
6 changes: 3 additions & 3 deletions schemas/RC/2006.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interface RedditComment_2006 {
author: string,
author_flair_css_class: null|"compsci"|"ca",
author_flair_text: null|"PhD | Computer Science"|"Canada",
author_flair_text: null|string,
body: string,
controversiality: number,
created_utc: number,
Expand All @@ -14,7 +14,7 @@ interface RedditComment_2006 {
retrieved_on: number,
score: number,
stickied: boolean,
subreddit: "reddit.com"|"nsfw"|"programming"|"features"|"joel"|"ja"|"request"|"ru"|"de"|"tr"|"no"|"pl"|"es"|"fr"|"it",
subreddit_id: "t5_6"|"t5_vf2"|"t5_2fwo"|"t5_21n6"|"t5_3b8o"|"t5_22i6"|"t5_21nj"|"t5_247i"|"t5_22i0"|"t5_2478"|"t5_247e"|"t5_2475"|"t5_22i2"|"t5_22i1"|"t5_247c",
subreddit: string,
subreddit_id: string,
ups: number,
}
16 changes: 8 additions & 8 deletions schemas/RC/2019.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ interface RedditComment_2019 {
count: number,
days_of_drip_extension: number,
days_of_premium: number,
description: "Silver Award"|"Gold Award"|"Platinum Award"|null,
description: string|null,
end_date?: null|number,
giver_coin_reward?: null|number,
icon_format?: null|"PNG",
icon_height: number,
icon_url: string,
icon_width: number,
id: "gid_1"|"gid_2"|"gid_3",
id: string,
is_enabled: boolean,
is_new?: boolean,
name: "Silver"|"Gold"|"Platinum"|"Lemon Cake"|"Iron Coin"|"Apt Analysis"|"Greenseer"|"Hand of the Queen"|"Crying MJ"|"Crown"|"Hodor"|"Perfect Murder"|"Most Valuable"|"Quality OC"|"Tinfoil"|null,
name: string|null,
penny_donate?: null|number,
penny_price?: null|number,
resized_icons: {
Expand All @@ -27,7 +27,7 @@ interface RedditComment_2019 {
}[],
start_date?: null|number,
subreddit_coin_reward?: number,
subreddit_id: null|"t5_2rjz2"|"t5_2qo4s"|"t5_3hx3r"|"t5_m1n8r"|"t5_2tk95"|"t5_mouw"|"t5_35fmc",
subreddit_id: null|string,
}[],
archived?: boolean,
associated_award?: null|{
Expand All @@ -44,10 +44,10 @@ interface RedditComment_2019 {
icon_height: number,
icon_url: string,
icon_width: number,
id: "gid_1"|"gid_2"|"gid_3",
id: string,
is_enabled: boolean,
is_new: boolean,
name: "Silver"|"Gold"|"Platinum"|"Musical skills!"|"Doggles"|"Artistic skills!"|"SHOW ME YOUR FRIDGE"|"Eek!"|"Gamer alert!"|"Top chef!"|"Bee Happy"|"Thirsty..."|"Space Goat"|"PANANAS"|"Golden PAN",
name: string,
penny_donate?: null,
penny_price?: null,
resized_icons: {
Expand Down Expand Up @@ -77,7 +77,7 @@ interface RedditComment_2019 {
author_fullname: string|null,
author_patreon_flair?: boolean,
author_premium?: boolean,
awarders?: ("Bioniclegenius"|"Belli91"|"shuntzu7"|"wearewildwinter"|"ucbsuperfreak"|"Dragonster82"|"NovaKevin"|"Dev_h1pp0p0t4mu5"|"ForgottenLoreInAutum")[],
awarders?: string[],
body: string,
can_gild: boolean,
can_mod_post: boolean,
Expand All @@ -102,7 +102,7 @@ interface RedditComment_2019 {
[key: string]: {
e: "AnimatedImage",
ext?: string,
id: "emote|emo_pack_1|dance"|"emote|emo_pack_1|clappy"|"emote|emo_pack_1|dab"|"emote|emo_pack_1|respect"|"emote|emo_pack_1|uNfOrTuNaTeLy"|"emote|emo_pack_1|confused"|"emote|emo_pack_1|bush"|"emote|emo_pack_1|cuddle"|"emote|emo_pack_1|oof"|"emote|emo_pack_1|wow"|"emote|emo_pack_1|chug"|"emote|emo_pack_1|default"|"emote|emo_pack_1|blink"|"emote|free_emotes_pack|facepalm"|"emote|emo_pack_1|soon",
id: string,
m: "image/gif",
p?: {
u: string,
Expand Down
2 changes: 1 addition & 1 deletion schemas/RC/2021.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,6 @@ interface RedditComment_2021 {
subreddit_type: "public"|"restricted"|"user"|"archived"|"private",
top_awarded_type: null,
total_awards_received: number,
treatment_tags: ("econ:render:lottie:redstar"|"econ:render:lottie:bulb"|"econ:render:lottie:sunny2"|"econ:render:lottie:cutie"|"econ:render:lottie:champagne")[],
treatment_tags: string[],
unrepliable_reason?: null,
}
Loading

0 comments on commit bebdc97

Please sign in to comment.