Adding vote display modes and other additions from main.

This commit is contained in:
Dessalines 2024-03-13 13:41:27 -04:00
parent c89acdd8df
commit 57c6df2aae
9 changed files with 22 additions and 27 deletions

View file

@ -125,8 +125,6 @@ export { ListCommentReports } from "./types/ListCommentReports";
export { ListCommentReportsResponse } from "./types/ListCommentReportsResponse";
export { ListCommunities } from "./types/ListCommunities";
export { ListCommunitiesResponse } from "./types/ListCommunitiesResponse";
export { ListMedia } from "./types/ListMedia";
export { ListMediaResponse } from "./types/ListMediaResponse";
export { ListPostLikes } from "./types/ListPostLikes";
export { ListPostLikesResponse } from "./types/ListPostLikesResponse";
export { ListPostReports } from "./types/ListPostReports";
@ -136,13 +134,13 @@ export { ListPrivateMessageReportsResponse } from "./types/ListPrivateMessageRep
export { ListRegistrationApplications } from "./types/ListRegistrationApplications";
export { ListRegistrationApplicationsResponse } from "./types/ListRegistrationApplicationsResponse";
export { ListingType } from "./types/ListingType";
export { LocalImage } from "./types/LocalImage";
export { LocalSite } from "./types/LocalSite";
export { LocalSiteId } from "./types/LocalSiteId";
export { LocalSiteRateLimit } from "./types/LocalSiteRateLimit";
export { LocalUser } from "./types/LocalUser";
export { LocalUserId } from "./types/LocalUserId";
export { LocalUserView } from "./types/LocalUserView";
export { LocalUserVoteDisplayMode } from "./types/LocalUserVoteDisplayMode";
export { LockPost } from "./types/LockPost";
export { Login } from "./types/Login";
export { LoginResponse } from "./types/LoginResponse";

View file

@ -5,6 +5,7 @@ import type { CommentReport } from "./CommentReport";
import type { Community } from "./Community";
import type { Person } from "./Person";
import type { Post } from "./Post";
import type { SubscribedType } from "./SubscribedType";
export interface CommentReportView {
comment_report: CommentReport;
@ -15,6 +16,11 @@ export interface CommentReportView {
comment_creator: Person;
counts: CommentAggregates;
creator_banned_from_community: boolean;
creator_is_moderator: boolean;
creator_is_admin: boolean;
creator_blocked: boolean;
subscribed: SubscribedType;
saved: boolean;
my_vote?: number;
resolver?: Person;
}

View file

@ -1,6 +0,0 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export interface ListMedia {
page?: /* integer */ number;
limit?: /* integer */ number;
}

View file

@ -1,6 +0,0 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { LocalImage } from "./LocalImage";
export interface ListMediaResponse {
images: Array<LocalImage>;
}

View file

@ -1,9 +0,0 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { LocalUserId } from "./LocalUserId";
export interface LocalImage {
local_user_id: LocalUserId;
pictrs_alias: string;
pictrs_delete_token: string;
published: string;
}

View file

@ -1,10 +1,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { LocalUser } from "./LocalUser";
import type { LocalUserVoteDisplayMode } from "./LocalUserVoteDisplayMode";
import type { Person } from "./Person";
import type { PersonAggregates } from "./PersonAggregates";
export interface LocalUserView {
local_user: LocalUser;
local_user_vote_display_mode: LocalUserVoteDisplayMode;
person: Person;
counts: PersonAggregates;
}

View file

@ -4,6 +4,7 @@ import type { Person } from "./Person";
import type { Post } from "./Post";
import type { PostAggregates } from "./PostAggregates";
import type { PostReport } from "./PostReport";
import type { SubscribedType } from "./SubscribedType";
export interface PostReportView {
post_report: PostReport;
@ -12,7 +13,15 @@ export interface PostReportView {
creator: Person;
post_creator: Person;
creator_banned_from_community: boolean;
creator_is_moderator: boolean;
creator_is_admin: boolean;
subscribed: SubscribedType;
saved: boolean;
read: boolean;
hidden: boolean;
creator_blocked: boolean;
my_vote?: number;
unread_comments: /* integer */ number;
counts: PostAggregates;
resolver?: Person;
}

View file

@ -8,7 +8,6 @@ export interface SaveUserSettings {
show_nsfw?: boolean;
blur_nsfw?: boolean;
auto_expand?: boolean;
show_scores?: boolean;
theme?: string;
default_sort_type?: SortType;
default_listing_type?: ListingType;
@ -31,4 +30,8 @@ export interface SaveUserSettings {
enable_keyboard_navigation?: boolean;
enable_animated_images?: boolean;
collapse_bot_comments?: boolean;
show_scores?: boolean;
show_upvotes?: boolean;
show_downvotes?: boolean;
show_upvote_percentage?: boolean;
}

View file

@ -14,8 +14,6 @@ export interface Site {
actor_id: string;
last_refreshed_at: string;
inbox_url: string;
private_key?: string;
public_key: string;
instance_id: InstanceId;
content_warning?: string;
}