diff --git a/src/index.ts b/src/index.ts index c8f4c38..f28cb0b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -186,6 +186,7 @@ export { PersonMention } from "./types/PersonMention"; export { PersonMentionId } from "./types/PersonMentionId"; export { PersonMentionResponse } from "./types/PersonMentionResponse"; export { PersonMentionView } from "./types/PersonMentionView"; +export { PersonSortType } from "./types/PersonSortType"; export { PersonView } from "./types/PersonView"; export { Post } from "./types/Post"; export { PostAggregates } from "./types/PostAggregates"; diff --git a/src/types/CommentAggregates.ts b/src/types/CommentAggregates.ts index df415d0..b381c65 100644 --- a/src/types/CommentAggregates.ts +++ b/src/types/CommentAggregates.ts @@ -10,4 +10,5 @@ export interface CommentAggregates { published: string; child_count: number; hot_rank: number; + controversy_rank: number; } diff --git a/src/types/CommentSortType.ts b/src/types/CommentSortType.ts index d386eaa..421e19b 100644 --- a/src/types/CommentSortType.ts +++ b/src/types/CommentSortType.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type CommentSortType = "Hot" | "Top" | "New" | "Old"; +export type CommentSortType = "Hot" | "Top" | "New" | "Old" | "Controversial"; diff --git a/src/types/LocalUser.ts b/src/types/LocalUser.ts index 4ede2c7..8f14749 100644 --- a/src/types/LocalUser.ts +++ b/src/types/LocalUser.ts @@ -9,8 +9,6 @@ export interface LocalUser { person_id: PersonId; email?: string; show_nsfw: boolean; - blur_nsfw: boolean; - auto_expand: boolean; theme: string; default_sort_type: SortType; default_listing_type: ListingType; @@ -26,4 +24,7 @@ export interface LocalUser { accepted_application: boolean; totp_2fa_url?: string; open_links_in_new_tab: boolean; + blur_nsfw: boolean; + auto_expand: boolean; + infinite_scroll_enabled: boolean; } diff --git a/src/types/PersonSortType.ts b/src/types/PersonSortType.ts new file mode 100644 index 0000000..54591c7 --- /dev/null +++ b/src/types/PersonSortType.ts @@ -0,0 +1,9 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type PersonSortType = + | "New" + | "Old" + | "MostComments" + | "CommentScore" + | "PostScore" + | "PostCount"; diff --git a/src/types/PostAggregates.ts b/src/types/PostAggregates.ts index 2817815..4c00789 100644 --- a/src/types/PostAggregates.ts +++ b/src/types/PostAggregates.ts @@ -1,4 +1,6 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { CommunityId } from "./CommunityId"; +import type { PersonId } from "./PersonId"; import type { PostId } from "./PostId"; export interface PostAggregates { @@ -15,4 +17,7 @@ export interface PostAggregates { featured_local: boolean; hot_rank: number; hot_rank_active: number; + community_id: CommunityId; + creator_id: PersonId; + controversy_rank: number; } diff --git a/src/types/ResolveObject.ts b/src/types/ResolveObject.ts index 502f519..9054047 100644 --- a/src/types/ResolveObject.ts +++ b/src/types/ResolveObject.ts @@ -2,5 +2,5 @@ export interface ResolveObject { q: string; - auth: string; + auth: string | null; } diff --git a/src/types/SaveUserSettings.ts b/src/types/SaveUserSettings.ts index 244137a..e8c8223 100644 --- a/src/types/SaveUserSettings.ts +++ b/src/types/SaveUserSettings.ts @@ -28,4 +28,5 @@ export interface SaveUserSettings { generate_totp_2fa?: boolean; auth: string; open_links_in_new_tab?: boolean; + infinite_scroll_enabled?: boolean; } diff --git a/src/types/SortType.ts b/src/types/SortType.ts index 23cc994..da0a064 100644 --- a/src/types/SortType.ts +++ b/src/types/SortType.ts @@ -17,4 +17,5 @@ export type SortType = | "TopTwelveHour" | "TopThreeMonths" | "TopSixMonths" - | "TopNineMonths"; + | "TopNineMonths" + | "Controversial";