Adding some additions from main. (#171)

This commit is contained in:
Dessalines 2023-07-26 15:23:11 -04:00 committed by GitHub
parent 2aa12c04a3
commit c77ee9ee16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 24 additions and 5 deletions

View file

@ -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";

View file

@ -10,4 +10,5 @@ export interface CommentAggregates {
published: string;
child_count: number;
hot_rank: number;
controversy_rank: number;
}

View file

@ -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";

View file

@ -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;
}

View file

@ -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";

View file

@ -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;
}

View file

@ -2,5 +2,5 @@
export interface ResolveObject {
q: string;
auth: string;
auth: string | null;
}

View file

@ -28,4 +28,5 @@ export interface SaveUserSettings {
generate_totp_2fa?: boolean;
auth: string;
open_links_in_new_tab?: boolean;
infinite_scroll_enabled?: boolean;
}

View file

@ -17,4 +17,5 @@ export type SortType =
| "TopTwelveHour"
| "TopThreeMonths"
| "TopSixMonths"
| "TopNineMonths";
| "TopNineMonths"
| "Controversial";